How to plot several vectors from origin?

11 次查看(过去 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