Filter löschen
Filter löschen

Mean of a cell array

2 Ansichten (letzte 30 Tage)
Anampally  Mahesh
Anampally Mahesh am 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.

Akzeptierte Antwort

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

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Matrices and Arrays finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by