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

1 次查看(过去 30 天)
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 CenterFile Exchange 中查找有关 Resizing and Reshaping Matrices 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by