How to plot several vectors from origin?

조회 수: 17 (최근 30일)
toner
toner 2011년 11월 13일
I would like to plot several vectors from the origin outwards. I only have the (x,y) value for each point I would like the line to go to. How am I to code for this!?

답변 (1개)

Wayne King
Wayne King 2011년 11월 13일
Hi, see the reference page for quiver
u = zeros(2,1);
v = zeros(2,1);
x = randn(2,1);
y = randn(2,1);
quiver(u,v,x,y);

카테고리

Help CenterFile Exchange에서 Vector Fields에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by