フィルターのクリア

How can I mean multiple matrices, element by element in a n*n cell array?

1 回表示 (過去 30 日間)
Wenyi Xiao
Wenyi Xiao 2019 年 4 月 21 日
編集済み: Matt J 2019 年 4 月 21 日
WeChat Screenshot_20190421200025.png
I've got a data looks like this. size(16*6) cell array. I want to get the average of each columns, but keep the size of each matrice(650*1).

採用された回答

Matt J
Matt J 2019 年 4 月 21 日
編集済み: Matt J 2019 年 4 月 21 日
If I call your cell array C,
M=cell2mat(reshape(C,1,16,[]));
result = mean(M,2)

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeCreating and Concatenating Matrices についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by