selecting specific layers in the 3rd dimension of a matric

1 visualización (últimos 30 días)
Cside
Cside el 13 de Ag. de 2019
Comentada: Cside el 13 de Ag. de 2019
Hi, I have a matrix A of size 226 x 621 x 59. May I know how do I form a new matrix of A[:,:,(43;53)] - selecting only the 43-53rd layers in the 3rd dimension, and then finding the mean of the 11 layers, eventually forming a 2d matrix of the means?
Thank you, appreciate any help given :)

Respuesta aceptada

madhan ravi
madhan ravi el 13 de Ag. de 2019
squeeze(mean(A(:,:,43:53)))

Más respuestas (0)

Categorías

Más información sobre Get Started with MATLAB 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!

Translated by