plotting vectors vertically with matlab

I've five vectors, that i want to show five vertical line in plot. How can i do? Please. Thank you all.

Réponses (1)

KSSV
KSSV le 27 Juin 2018
Vec = rand(5,2) ;
N = size(Vec,1) ;
x = zeros(N,1) ;
y = 1:N ;
quiver(x,y,Vec(:,1),Vec(:,2),1)

2 commentaires

Nga Wai
Nga Wai le 27 Juin 2018
Thank You KSSV. But I have already decided and got the result.
Hanna Weiss
Hanna Weiss le 3 Déc 2019
can you share the code for plotting vectors vertically like this?

Connectez-vous pour commenter.

Catégories

En savoir plus sur Graphics Objects dans Centre d'aide et File Exchange

Question posée :

le 26 Juin 2018

Commenté :

le 3 Déc 2019

Community Treasure Hunt

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

Start Hunting!

Translated by