How to plot quiver in normalize size

10 visualizaciones (últimos 30 días)
yudi30
yudi30 el 15 de Sept. de 2017
Respondida: KSSV el 15 de Sept. de 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])

Respuestas (1)

KSSV
KSSV el 15 de Sept. de 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.

Categorías

Más información sobre Vector Fields en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by