How to divide a 4500x4500 matrix into smaller 36x36 matrices?
8 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Daniel Tanner
el 2 de Ag. de 2019
Comentada: Daniel Tanner
el 2 de Ag. de 2019
I am currently carrying out some data analysis. I have a data set of 4500x4500 and I would like to split this into many squares of 36x36 for the whole data set. I understand this can be done using the mat2cell command but I cannot seem to understand how to correctly use it. Any help would be greatly appreciated. Thanks.
0 comentarios
Respuesta aceptada
Alex Mcaulley
el 2 de Ag. de 2019
Try this:
a = rand(4500);
b = mat2cell(a,36*ones(4500/36,1),36*ones(4500/36,1))
Más respuestas (0)
Ver también
Categorías
Más información sobre Resizing and Reshaping Matrices en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!