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

2 Ansichten (letzte 30 Tage)
mxie888
mxie888 am 10 Okt. 2017
Beantwortet: Eric am 9 Nov. 2017
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 Kommentar
KSSV
KSSV am 10 Okt. 2017
YOur question is not clear....why don't you show the expected output of the given matrix.

Melden Sie sich an, um zu kommentieren.

Antworten (1)

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

Kategorien

Mehr zu Get Started with MATLAB finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by