Mean value of equal cells
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
JamJan
am 25 Jul. 2019
Beantwortet: Andrei Bobrov
am 25 Jul. 2019
I have a 2 x 9 cell:
29x1 double 22x1 double 22x1 double 22x1 double 22x1 double 22x1 double 22x1 double 24x1 double 34x1 double
1x40 double 1x40 double 1x40 double 1x40 double 1x40 double 1x40 double 1x40 double 1x40 double 1x40 double
I want to take the mean of all the 1x40 doubles (so the second row and all the columns) of this cells and have the result of a 1x40 mean double.
How to do this?
0 Kommentare
Akzeptierte Antwort
Andrei Bobrov
am 25 Jul. 2019
Let X - your cell array (2 x 9):
out = mean(cat(1,X{2,:}));
0 Kommentare
Weitere Antworten (0)
Siehe auch
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!