plotting vectors vertically with matlab

7 Ansichten (letzte 30 Tage)
Nga Wai
Nga Wai am 26 Jun. 2018
Kommentiert: Hanna Weiss am 3 Dez. 2019
I've five vectors, that i want to show five vertical line in plot. How can i do? Please. Thank you all.

Antworten (1)

KSSV
KSSV am 27 Jun. 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 Kommentare
Nga Wai
Nga Wai am 27 Jun. 2018
Thank You KSSV. But I have already decided and got the result.
Hanna Weiss
Hanna Weiss am 3 Dez. 2019
can you share the code for plotting vectors vertically like this?

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Graphics Objects finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by