How can I sum a matrix in a For Loop?
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
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 Commenti
Risposta accettata
Sean de Wolski
il 2 Nov 2012
doc sum
?
2 Commenti
Sean de Wolski
il 2 Nov 2012
sum(C(1:30))
If you evaluate at the MATLAB command line:
>>doc sum
It will tell you all about summing.
Più risposte (1)
Vedere anche
Categorie
Scopri di più su Logical in Help Center e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!