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

7 Ansichten (letzte 30 Tage)
Hassan Zhairabany
Hassan Zhairabany am 28 Mai 2020
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

Akzeptierte Antwort

KSSV
KSSV am 28 Mai 2020
To use imshow the input should be a matrix .....you may try
imshow(squeeze(B))
  3 Kommentare
KSSV
KSSV am 28 Mai 2020
Thanks is accepting the answer...:)
Hassan Zhairabany
Hassan Zhairabany am 28 Mai 2020
Bearbeitet: Hassan Zhairabany am 28 Mai 2020
:) I forgot to accept it at first. now accepted

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Geometric Transformation and Image Registration finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by