How can I sum a matrix in a For Loop?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentare
Akzeptierte Antwort
Sean de Wolski
am 2 Nov. 2012
doc sum
?
2 Kommentare
Sean de Wolski
am 2 Nov. 2012
sum(C(1:30))
If you evaluate at the MATLAB command line:
>>doc sum
It will tell you all about summing.
Weitere Antworten (1)
Siehe auch
Kategorien
Mehr zu Logical finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!