Hi im new to matlab. I have importet numerical matrix 299x4 from excel to matlab and devided it to x1, x2, y1 and y2 values:
But how do i make vectors from x1,y1, x2 and y2 values and then plot them. Like on this picture:

 채택된 답변

darova
darova 2020년 2월 18일

0 개 추천

Use quiver function
u1 = diff(x1);
v1 = diff(y1);
plot(x,y,'.r')
hold on
quiver(x1(1:end-1),y1(1:end-1),u1,v1)
hold off

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Data Import from MATLAB에 대해 자세히 알아보기

태그

질문:

2020년 2월 18일

댓글:

2020년 2월 18일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by