how can I extract 2D matrices for xy, xz, yz planes from a 3D matrix and use the pcolor function?

4 ビュー (過去 30 日間)
I have a 3D matrix of a specific variable extracted from a netCDF file. I extract matrices for each space plane,but when I used pcolor function for each 2D matrices, it gave me error.

採用された回答

KSSV
KSSV 2021 年 10 月 20 日
Read about slice. This is your function.

その他の回答 (1 件)

Image Analyst
Image Analyst 2021 年 10 月 20 日
Try imshow() instead of pcolor. pcolor() doesn't even show you the last row or column so that's why I don't like pcolor().
imshow(variable_xy, []);

カテゴリ

Help Center および File ExchangeMapping Toolbox についてさらに検索

製品


リリース

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by