Calculating mean values of a 3D matrix for every rows

1 visualización (últimos 30 días)
Joydeb Saha
Joydeb Saha el 30 de Mzo. de 2022
Comentada: Joydeb Saha el 6 de Abr. de 2022
I have a matrix 12x441x1440. 12 is the dimension of time. how can I get 12 average numbers for every month from that matrix

Respuesta aceptada

Simon Chan
Simon Chan el 30 de Mzo. de 2022
Try this:
mean(yourmatrix,[2 3]);
  4 comentarios
Bruno Luong
Bruno Luong el 30 de Mzo. de 2022
Look like you have old MATLAB version
mean(mean(yourmatrix,2),3);

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Logical 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