How can I sum a matrix in a For Loop?
조회 수: 1 (최근 30일)
이전 댓글 표시
Hi;
I've a model done with matlab in wich I've several for loop, every step of every cycle creates a matrix. I want to sum every created matrix.
thanks
댓글 수: 0
채택된 답변
Sean de Wolski
2012년 11월 2일
doc sum
?
댓글 수: 2
Sean de Wolski
2012년 11월 2일
sum(C(1:30))
If you evaluate at the MATLAB command line:
>>doc sum
It will tell you all about summing.
추가 답변 (1개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Logical에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!