How to plot several vectors from origin?

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일

0 개 추천

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

카테고리

도움말 센터File Exchange에서 Vector Fields에 대해 자세히 알아보기

제품

태그

질문:

2011년 11월 13일

Community Treasure Hunt

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

Start Hunting!

Translated by