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.

回答 (1 件)

KSSV
KSSV 2018 年 6 月 27 日

0 投票

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?

サインインしてコメントする。

カテゴリ

ヘルプ センター および File ExchangeGraphics Objects についてさらに検索

質問済み:

2018 年 6 月 26 日

コメント済み:

2019 年 12 月 3 日

Community Treasure Hunt

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

Start Hunting!

Translated by