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

조회 수: 7 (최근 30일)
Hassan Zhairabany
Hassan Zhairabany 2020년 5월 28일
편집: Hassan Zhairabany 2020년 5월 28일
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))
  댓글 수: 3
KSSV
KSSV 2020년 5월 28일
Thanks is accepting the answer...:)
Hassan Zhairabany
Hassan Zhairabany 2020년 5월 28일
편집: Hassan Zhairabany 2020년 5월 28일
:) I forgot to accept it at first. now accepted

댓글을 달려면 로그인하십시오.

추가 답변 (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