Extracting a 2 dimensional array from a 3 dimensional matrix.
Mostrar comentarios más antiguos
I have a 3D matrix named SM of order 17x10x181. I need to extract a 2D matrix from SM of order 10x181. What should be the command?
Respuesta aceptada
Más respuestas (1)
use squeeze,
a = squeeze(yourmatrix(1,:,:))
first row from all pages. I suggest reading the doc page of squeeze.
1 comentario
Werner Barros
el 29 de Jul. de 2020
Thank you so much
Categorías
Más información sobre Matrix Indexing en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!