Effacer les filtres
Effacer les filtres

What would be the scale of the vector using mquiver

14 vues (au cours des 30 derniers jours)
Sophia
Sophia le 12 Avr 2016
The values of vector mean_wint_u and mean_wint_u are cm/s * I have plotted every fourth vector and scaled it 4 so what would be unit, and what length signifies what?*
m_quiver(long(1:4:361,1:4:361),lat(1:4:361,1:4:361),mean_wint_u(1:4:361,1:4:361),mean_wint_v(1:4:361,1:4:361),4,'color',[0 0 0]);
  2 commentaires
MARK THACKWRAY
MARK THACKWRAY le 25 Avr 2017
Hi Did you ever find an answer for this? M
Sophia
Sophia le 26 Juin 2017
Not so far!

Connectez-vous pour commenter.

Réponses (1)

Jess Lovering
Jess Lovering le 26 Juin 2017
It appears from the description in the file that it does not have a unit value since it is just scaling to fit the grid (make it pretty) and then multiplying that by 4 in your case. Seems like you have to set the scaling to zero to make it scale to the map units. Then maybe you can modify your data accordingly (multiple it by 4 if you want it four times the size) but then you will at least know that it is 4 units/degree that way. I hope this helps.
HERE IS WHAT THE SCRIPT SAYS:
m_quiver(X,Y,U,V,S) automatically scales the arrows to fit within the grid and then stretches them by S. Use S=0 to plot the arrows without the automatic scaling; In this case the scaling is 1 unit/degree latitude. Note that we do not scale arrows with respect to map coordinates! Instead, the arrows will correspond better to actual motions over some time step. The tradeoff is that a single scale arrow cannot be accurate for the entire map (M_VEC scales arrows according to map coordinates).

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