Quiver plotting arrow length
9 次查看(过去 30 天)
显示 更早的评论
I want to plot a quiver plot of one arrow.
x=1;
y=1;
u=3;
v=4;
quiver(x,y,v,u)
I would expect that the arrow would start at point (1,1) and the length in the x direction would 3 while the length on the y direction would be 4.So the magnitude of the vector would be 5.
But this isn't the case. Can you explain me why? Thank you.
0 个评论
采纳的回答
the cyclist
2013-4-6
编辑:the cyclist
2013-4-6
Two things:
(1) It looks like you swapped the u and v arguments compared to how you actually want them, so I think you actually want
quiver(x,y,u,v)
(2) There is an automatic scaling that occurs to the arrow (which is described in the documentation). You can turn off that scaling:
quiver(x,y,u,v,0)
I believe that will result in the plot you expect.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Vector Fields 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!