plotting vectors vertically with matlab

6 views (last 30 days)
Nga Wai
Nga Wai on 26 Jun 2018
Commented: Hanna Weiss on 3 Dec 2019
I've five vectors, that i want to show five vertical line in plot. How can i do? Please. Thank you all.

Answers (1)

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

Sign in to comment.

Categories

Find more on Graphics Objects in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!