making of Quiver Plots

조회 수: 2 (최근 30일)
Joydeb Saha
Joydeb Saha 2021년 4월 29일
편집: VBBV 2021년 4월 29일
My matrices are,
new_lon1 = 1440X1
lat1 = 721X1
U = 1X 721 X 1440
V = 1X 721 X 1440
I tried the making quiver plot by this command:
quiver(new_lon1,lat1,U,V,1,'color','black');
Showing error
  댓글 수: 1
Jonas
Jonas 2021년 4월 29일
편집: Jonas 2021년 4월 29일
your prblem is the dimension of U and V, they should be 721 x 1440, your 2D array goes along the 3rd dimension

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

채택된 답변

VBBV
VBBV 2021년 4월 29일
편집: VBBV 2021년 4월 29일
%f true
quiver(new_lon1,lat1,U(1,:,:),V(1,:,:),'k')
Need to be same size as X and Y
  댓글 수: 2
Joydeb Saha
Joydeb Saha 2021년 4월 29일
The problem remains the same
U(1,:,:) this operation keeps the size of U same as the earlier
VBBV
VBBV 2021년 4월 29일
편집: VBBV 2021년 4월 29일
%f true
[X Y] = meshgrid(linspace(min(lat1),max(lat1),length(lat1)),linspace(min(new_lon1),max(new_lon1),length(new_lon1)))
%f true
quiver(X,Y,U(1,:,:),V(1,:,:),'k')
Try this

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

추가 답변 (0개)

카테고리

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