MATLAB Answers

Summing multiple cell entries

1 view (last 30 days)
JVoui27 on 31 Jan 2021
Commented: JVoui27 on 1 Feb 2021
Hi I have a 19x1 cell array F which contains 19 3787x1 cells. How can I sum all of these 19 entries to have a single 3787x1 cell to determine a mean for the data??
F = {3787x1} {3787x1} {3787x1}..... (19 entries)
I've really been struggling to find an efficient code to do this.

Sign in to comment.

Accepted Answer

Ive J
Ive J on 31 Jan 2021
Fmat = sum([F{:}], 2);

More Answers (0)




Community Treasure Hunt

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

Start Hunting!