question regarding quiver command
2 views (last 30 days)
Show older comments
x = [1 1];
y = [1 2];
u = [1 2];
v = [1 3];
quiver(x,y,u,v)
This is my simple code.. I cant get what u & v tells..apart form this what the length of the arrow indicates? can someone tell me what this parameters indicate?
0 Comments
Answers (1)
Star Strider
on 18 Apr 2015
The x and y are the origins or ‘feathers’ of the arrow, and the u and v are the directions. Here, one arrow starts at (1,1) and goes in the direction (1,1), and the second starts at (1,2) and goes in the direction (2,3). The plot scales the length and other parameters, so see the documentation on quiver for that.
It is easier to see if you make the axes equal:
quiver(x,y,u,v)
axis equal
0 Comments
See Also
Categories
Find more on Vector Fields in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!