Average for 4d data

6 visualizzazioni (ultimi 30 giorni)
Nurul Ain Basirah Zakaria
Commentato: Ameer Hamza il 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.

Risposta accettata

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

Accedi per commentare.

Più risposte (0)

Categorie

Scopri di più su Polar Plots in Help Center e File Exchange

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by