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

2 views (last 30 days)
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.

Answers (1)

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

Categories

Find more on Get Started with MATLAB 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!