Could anyone help me how to calculate the mean of cell array
2 ビュー (過去 30 日間)
古いコメントを表示
I am having
A=10x1 cell
in which each rows are as follows
[1,2]
[1,2]
[1,2]
[1,2]
[1,2]
[1,2]
[1,1]
[1,2]
[1,2]
[1,2]
Now I want to calculate the mean of A. Could anyone please help me on this.
0 件のコメント
回答 (1 件)
Scott MacKenzie
2021 年 8 月 5 日
編集済み: Scott MacKenzie
2021 年 8 月 5 日
I'm guessing either m1 or m2 below is what you are looking for.
c = { [1 2]; [1 2]; [1 2]; [1 2]; [1 2]; [1 2]; [1 2]; [1 2]; [1 2]; [1 2]}
m1 = cellfun(@mean, c)
m2 = mean(cellfun(@mean, c))
0 件のコメント
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!