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 CenterFile Exchange 中查找有关 Mapping Toolbox 的更多信息

产品


版本

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by