How to plot quiver in normalize size

35 vues (au cours des 30 derniers jours)
yudi30
yudi30 le 15 Sep 2017
Réponse apportée : KSSV le 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])

Réponses (1)

KSSV
KSSV le 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.

Catégories

En savoir plus sur Vector Fields dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by