You need to read from the file data and draw the points and connect the last 3?

You need to read from the file data and draw the points and connect the last 3!!
about this script in Matlab
clear
A = load('data.txt'); % read data
x = A(:,1); % first column 
y = A(:,2); % the second column
plot(x,y,'o'); % draw
h=A(y(end)-2:y(end),1)
m=A(x(end)-2:x(end),1);
plot(m,h);

but nothing happens
July 2nd 19 at 13:15
0 answer

Find more questions by tags MATLAB