Clear Filters
Clear Filters

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

1 view (last 30 days)
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).

Accepted Answer

Matt J
Matt J on 21 Apr 2019
Edited: Matt J on 21 Apr 2019
If I call your cell array C,
result = mean(M,2)

More Answers (0)


Find more on Creating and Concatenating Matrices in Help Center and File Exchange


Community Treasure Hunt

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

Start Hunting!