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 Exchange에서 Resizing 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