Excel data set to vectors

1 vue (au cours des 30 derniers jours)
TokTik
TokTik le 18 Fév 2020
Commenté : TokTik le 18 Fév 2020
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:

Réponse acceptée

darova
darova le 18 Fév 2020
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
  1 commentaire
TokTik
TokTik le 18 Fév 2020
Thanks

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Data Import from MATLAB dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by