plotting vectors vertically with matlab

7 ビュー (過去 30 日間)
Nga Wai
Nga Wai 2018 年 6 月 26 日
コメント済み: Hanna Weiss 2019 年 12 月 3 日
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 Center および File ExchangeGraphics Objects についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by