How to plot quiver in normalize size

10 views (last 30 days)
yudi30
yudi30 on 15 Sep 2017
Answered: KSSV on 15 Sep 2017
Greetings
I have a problem to display the current speed using quiver. My problem is setting up the length scale of vector. I try below code but some vectors show more biggest than the others. So how I can do that to normalize that vectors. Therefore they show same size but different in direction. Anybody can help me ....
Thanks for advance
p= 10;
quiver(x1,y1,p*u2,p*v2,0,'color',[0 0 0])

Answers (1)

KSSV
KSSV on 15 Sep 2017
Read the documentation of quiver there is an option of restricting/ mentioning the size of arrows by a scale.
quiver(...,scale) automatically scales the arrows to fit within the grid and then stretches them by the factor scale. scale = 2 doubles their relative length, and scale = 0.5 halves the length. Use scale = 0 to plot the velocity vectors without automatic scaling.

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!