How to plot several vectors from origin?

17 visualizaciones (últimos 30 días)
toner
toner el 13 de Nov. de 2011
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!?

Respuestas (1)

Wayne King
Wayne King el 13 de Nov. de 2011
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);

Categorías

Más información sobre Vector Fields en Help Center y File Exchange.

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by