How do I add cell (or double) columns together to form a new cell or vector?

2 次查看(过去 30 天)
I am looking to index the number of occurrences of a substring that iterates several times in a nested for loop. It would be great if i could basically add from left to right in the image i provided, to get a single scoring column.
Thanks in advance.

回答(1 个)

Eric
Eric 2017-11-9
Is this what you're looking for?
sum(A,2)

类别

Help CenterFile Exchange 中查找有关 Get Started with MATLAB 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by