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!