필터 지우기
필터 지우기

What would be the scale of the vector using mquiver

조회 수: 14 (최근 30일)
Sophia
Sophia 2016년 4월 12일
답변: Jess Lovering 2017년 6월 26일
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
MARK THACKWRAY
MARK THACKWRAY 2017년 4월 25일
Hi Did you ever find an answer for this? M
Sophia
Sophia 2017년 6월 26일
Not so far!

댓글을 달려면 로그인하십시오.

답변 (1개)

Jess Lovering
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).

카테고리

Help CenterFile Exchange에서 Vector Fields에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by