How can plot precipitation data with latitude longitude information? I have matrix of precipitation over the time,latitude and longitude all are in 470*160*140 dimensions.
1 回表示 (過去 30 日間)
古いコメントを表示
Nurul Ain Basirah Zakaria
2020 年 10 月 18 日
コメント済み: Nurul Ain Basirah Zakaria
2020 年 10 月 18 日
How can plot precipitation data with latitude longitude information? I have matrix of precipitation over the time,latitude and longitude all are in 470*160*140 dimensions.
Thank you in advance!
0 件のコメント
採用された回答
KSSV
2020 年 10 月 18 日
Let lon, lat, P be your matrices of size 470*160*140.
[m,n,p] = size(P) ;
for i = 1:p
pcolor(lon(:,:,i),lat(:,:,i),P(:,:,i)) ;
shading interp
colorbar
drawnow
end
You can also use surf, contour, countourf.
5 件のコメント
KSSV
2020 年 10 月 18 日
Just try this:
[m,n,p] = size(P) ;
for i = 1:p
pcolor(lon,lat,P(:,:,i)) ;
shading interp
colorbar
drawnow
end
その他の回答 (1 件)
Ameer Hamza
2020 年 10 月 18 日
For a specific time-value, the you can use several functions, such as contour(), contourf(), mesh(), surf(), pcolor() to plot the information. For example
M; % 470*160*140 matrix
contourf(squeeze(M(1,:,:))); %
参考
カテゴリ
Help Center および File Exchange で Surface and Mesh Plots についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!