Mean value of equal cells

1 回表示 (過去 30 日間)
JamJan
JamJan 2019 年 7 月 25 日
回答済み: Andrei Bobrov 2019 年 7 月 25 日
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?

採用された回答

Andrei Bobrov
Andrei Bobrov 2019 年 7 月 25 日
Let X - your cell array (2 x 9):
out = mean(cat(1,X{2,:}));

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeModeling についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by