plotting lat, lon, altitude, variable
古いコメントを表示
I have 3 vectors of latitude, longitude, and elevation respectively. I also have a corresponding 3d matrix of size latitude*longitude*elevation which contains some data (Temperature). I want to display the Temperature data in 3d space. What is the best way to do this? Note: I don't want to use trisurf because it requires reshaping the matrix into 3 separate vectors, with which I found difficulty in tracking the data points.
Many thanks.
-Sagar
採用された回答
その他の回答 (3 件)
4 件のコメント
Chad Greene
2015 年 3 月 12 日
編集済み: Chad Greene
2015 年 3 月 12 日
Interesting. I'm guessing your permuted_ext_mean variable has a lot of NaN values? Around line 74 of pcolor3 there's a slice line with the 'cubic' interpolation option chosen. There's a small chance that changing 'cubic' to 'linear' or 'nearest' will make it work. In the meantime I may tinker with an interpolationless solution.
Chad Greene
2015 年 3 月 12 日
I've just updated the function with a 'direct' option, which will plot your data directly instead of interpolating between points.
Sagar
2015 年 3 月 13 日
Sagar
2015 年 3 月 15 日
1 件のコメント
Chad Greene
2015 年 3 月 16 日
Or similarly,
in = ingeoquad(lat,long,[0 40],[-20 70]);
long(~in) = NaN;
lat(~in) = NaN;
カテゴリ
ヘルプ センター および File Exchange で Climate Science and Analysis についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

