W
W
woody142016-11-30 00:23:56
MATLAB
woody14, 2016-11-30 00:23:56

Need to read data from a file and draw points and connect the last 3?

You need to read data from the file and draw points and connect the last 3 !!
something like this script in matlab

clear
A = load('data.txt'); % считываем данные
x = A(:,1); % первый столбец 
y = A(:,2); % второй столбец
plot(x,y,'o'); % рисуем
h=A(y(end)-2:y(end),1)
m=A(x(end)-2:x(end),1);
plot(m,h);

but nothing works

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question