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 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