Azzera filtri
Azzera filtri

Mean of a cell array

2 visualizzazioni (ultimi 30 giorni)
Anampally  Mahesh
Anampally Mahesh il 4 Feb 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.

Risposta accettata

Walter Roberson
Walter Roberson il 5 Feb 2024
mean(cat(3, TheCellArray{:}),3)
  1 Commento
Anampally  Mahesh
Anampally Mahesh il 5 Feb 2024
Thank you so much, Walter.
It works very nicely :)

Accedi per commentare.

Più risposte (0)

Categorie

Scopri di più su Matrices and Arrays in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by