Divide a 3D matrix into smaller 3D matrixes
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
konstantina vatavali
il 14 Ago 2020
Commentato: konstantina vatavali
il 14 Ago 2020
Hello,
I have a 3D matrix e.g. 100x200x400.
How can I divide it into 100 submatrices which dimensions are 100x200x4?
Thank you!
Risposta accettata
Walter Roberson
il 14 Ago 2020
Modificato: Walter Roberson
il 14 Ago 2020
YourCell = mat2cell(size(YourArray,1), size(YourArray,2), 4*ones(size(YourArray,3)/4));
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Creating and Concatenating Matrices in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!