Average for 4d data

9 visualizaciones (últimos 30 días)
Nurul Ain Basirah Zakaria
Nurul Ain Basirah Zakaria el 6 de Nov. de 2020
Comentada: Ameer Hamza el 8 de Nov. de 2020
Hi! How can I calculate the average for a 160x140x1x12 which are lat,lon,year and month. I want to calculate the average of month for one year.

Respuesta aceptada

Ameer Hamza
Ameer Hamza el 6 de Nov. de 2020
You can specify the dimension to the mean() function
M = rand(160,140,1,12);
M_new = mean(M, 4)
  6 comentarios
Nurul Ain Basirah Zakaria
Nurul Ain Basirah Zakaria el 8 de Nov. de 2020
sir, thank you very much. excuse me for my slow brain.
Ameer Hamza
Ameer Hamza el 8 de Nov. de 2020
I am glad to be of help! :)

Iniciar sesión para comentar.

Más respuestas (0)

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by