Effacer les filtres
Effacer les filtres

how to do the 3d averaging ?

3 vues (au cours des 30 derniers jours)
Lilya
Lilya le 19 Sep 2018
Commenté : Lilya le 19 Sep 2018
Hi all,
I have a 3d matrix that has the dim of 61*81*3 (data*data*days) I want to calculate the mean of the 3rd dimension from the 2d matrix (61*81) which means every day has the 61*81 matrix. please pay attention that contains NaN elements.
anyone can help with that? I do appreciate the effort.
thanks

Réponse acceptée

KALYAN ACHARJYA
KALYAN ACHARJYA le 19 Sep 2018
Modifié(e) : KALYAN ACHARJYA le 19 Sep 2018
This is how you can do average of 3 D matrix
average_data=mean(data,3);
Mean of 3 rd dimension
average_3plabne=mean(data(:,:,3));
  1 commentaire
Lilya
Lilya le 19 Sep 2018
Thank you! it works

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Discrete Math dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by