Extracting a 2 dimensional array from a 3 dimensional matrix.
Mostrar comentarios más antiguos
If I have a 3 dimensional matrix, with rows 1 through 10, columns a through z and pages 1 through 4, how do I extract a 2 dimensional array containing the leftmost slab of data, that is, all the column "a" data for all four pages? This would be a 10 x 4 array, with all the data from columns "a" (or 1 if you prefer numeric).
I will rearrange said data, and then want to reinstall the rearranged data in its original place in the 3 dimensional matrix.
Any help would be appreciated.
Respuesta aceptada
Más respuestas (1)
Zhuang Min Choo
el 6 de Sept. de 2018
0 votos
What if don't use the function "squeeze" to find the answer, any other options?
1 comentario
Stephen23
el 6 de Sept. de 2018
permute
Categorías
Más información sobre Matrix Indexing en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!