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 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