Effacer les filtres
Effacer les filtres

Mean of a cell array

2 vues (au cours des 30 derniers jours)
Anampally  Mahesh
Anampally Mahesh le 4 Fév 2024
I have a 10*1 cell array named Data.mat, that each row of it contains a 30*30 matrix. How to calculate the mean of this cell array and obtain a 30*30 matrix? Thanks in advance for your kind help. Regards, Mahesh.

Réponse acceptée

Walter Roberson
Walter Roberson le 5 Fév 2024
mean(cat(3, TheCellArray{:}),3)
  1 commentaire
Anampally  Mahesh
Anampally Mahesh le 5 Fév 2024
Thank you so much, Walter.
It works very nicely :)

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Matrices and Arrays 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