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 Center および File ExchangeGeometric 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