Divide a 3D matrix into smaller 3D matrixes

2 visualizaciones (últimos 30 días)
konstantina vatavali
konstantina vatavali el 14 de Ag. de 2020
Comentada: konstantina vatavali el 14 de Ag. de 2020
Hello,
I have a 3D matrix e.g. 100x200x400.
How can I divide it into 100 submatrices which dimensions are 100x200x4?
Thank you!

Respuesta aceptada

Walter Roberson
Walter Roberson el 14 de Ag. de 2020
Editada: Walter Roberson el 14 de Ag. de 2020
YourCell = mat2cell(size(YourArray,1), size(YourArray,2), 4*ones(size(YourArray,3)/4));

Más respuestas (0)

Categorías

Más información sobre Creating and Concatenating Matrices en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by