plotting vectors vertically with matlab

7 次查看(过去 30 天)
I've five vectors, that i want to show five vertical line in plot. How can i do? Please. Thank you all.

回答(1 个)

KSSV
KSSV 2018-6-27
Vec = rand(5,2) ;
N = size(Vec,1) ;
x = zeros(N,1) ;
y = 1:N ;
quiver(x,y,Vec(:,1),Vec(:,2),1)
  2 个评论
Nga Wai
Nga Wai 2018-6-27
Thank You KSSV. But I have already decided and got the result.
Hanna Weiss
Hanna Weiss 2019-12-3
can you share the code for plotting vectors vertically like this?

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Graphics Objects 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by