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

Antworten (1)

Wayne King
Wayne King am 13 Nov. 2011

0 Stimmen

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

Kategorien

Mehr zu Vector Fields finden Sie in Hilfe-Center und File Exchange

Produkte

Tags

Gefragt:

am 13 Nov. 2011

Community Treasure Hunt

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

Start Hunting!

Translated by