What would be the scale of the vector using mquiver
9 views (last 30 days)
Show older comments
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 Comments
Answers (1)
Jess Lovering
on 26 Jun 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).
0 Comments
See Also
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!