Hi! So i am trying to Transform a 1022x1022x3 that contain [boolean , boolean , boolean] elements to a 1022x1022x1 that only contains the boolean at Position [1]. how could I so this?

 採用された回答

darova
darova 2021 年 7 月 24 日

0 投票

Assume A is your 3D matrix (1024x1024x3)
A1 = A(:,:,1); % extract first matrix

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeResizing and Reshaping Matrices についてさらに検索

質問済み:

2021 年 7 月 24 日

回答済み:

2021 年 7 月 24 日

Community Treasure Hunt

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

Start Hunting!

Translated by