What would be the scale of the vector using mquiver
9 次查看(过去 30 天)
显示 更早的评论
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 个评论
回答(1 个)
Jess Lovering
2017-6-26
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 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Vector Fields 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!