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

2 ビュー (過去 30 日間)
mxie888
mxie888 2017 年 10 月 10 日
回答済み: Eric 2017 年 11 月 9 日
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 件のコメント
KSSV
KSSV 2017 年 10 月 10 日
YOur question is not clear....why don't you show the expected output of the given matrix.

サインインしてコメントする。

回答 (1 件)

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

カテゴリ

Help Center および File ExchangeGet Started with MATLAB についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by