Transform a Numpy array of a mask
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Juan Pablo Rueda Barrios
am 24 Jul. 2021
Beantwortet: darova
am 24 Jul. 2021
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?
0 Kommentare
Akzeptierte Antwort
darova
am 24 Jul. 2021
Assume A is your 3D matrix (1024x1024x3)
A1 = A(:,:,1); % extract first matrix
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Elementary Math finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!