How I can show one plane of a 3D matrix double

7 次查看(过去 30 天)
Hello,
I have a matrix
A=randi([0,1],[256,256,5])
and I want to show the plane B in a top view image like imshow()
B=A(255,:,:)
But imshow(B) does not work because the image of B considered Multi-plane, B is 256*1*5 double

采纳的回答

KSSV
KSSV 2020-5-28
To use imshow the input should be a matrix .....you may try
imshow(squeeze(B))

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Geometric Transformation and Image Registration 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by