Average for 4d data

4 vues (au cours des 30 derniers jours)
Nurul Ain Basirah Zakaria
Commenté : Ameer Hamza le 8 Nov 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.

Réponse acceptée

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

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Polar Plots dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by