Quiver arrow doesn't show at the right place

3 views (last 30 days)
o = [0,0];
v = [3 10];
quiver(o(1), o(2), v(1), v(2),'k','LineWidth',2);
hold on
plot(v(1),v(2),"o")
xlim([(-1) (11)]);
ylim([(-1) (11)]);
grid on
The arrow is pointing towards [3, 10] but ends around [2.75, 9] while it should've stop at the red dot, right? Or am i wrong?

Accepted Answer

Simon Chan
Simon Chan on 22 Mar 2023
By default, AutoScale is set to on and AutoScaleFactor is 0.9.
So you may set AutoScale to off or set AutoScaleFactor to 1.
  1 Comment
Dirk te Brake
Dirk te Brake on 22 Mar 2023
I can understand why an autoscalefactor option is usefull but why set it to 0.9 by default? Anyway thank you!

Sign in to comment.

More Answers (0)

Categories

Find more on Vector Fields in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!