lat= 10848x10848 double and lon= 10848x10848 double. How to make spatial map with this ?

1 回表示 (過去 30 日間)
Joydeb Saha
Joydeb Saha 2022 年 2 月 7 日
回答済み: Voss 2022 年 2 月 7 日
I have two matrix lat and lon. But the problem is lat= 10848x10848 double and lon= 10848x10848 double. How to make spatial map with this ? also lat and lon matfile size are high. 459685kb each

回答 (1 件)

Voss
Voss 2022 年 2 月 7 日
If they are in a form as you'd get from meshgrid(), then you can easily make a spatial map using surf() among other functions. (I decreased the size to get the code to run in 55 seconds or less, i.e., to show up here - in your case you may have no problem doing this with the 10848 size matrices.)
[lat,lon] = meshgrid(linspace(-90,90,1084),linspace(-90,90,1084));
size(lat)
ans = 1×2
1084 1084
size(lon)
ans = 1×2
1084 1084
surf(lon,lat,8100-lat.^2-lon.^2,'EdgeColor','none');
view([0 90]);

カテゴリ

Help Center および File ExchangeResizing and Reshaping Matrices についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by