How can I sum a matrix in a For Loop?
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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 commentaires
Réponse acceptée
Sean de Wolski
le 2 Nov 2012
doc sum
?
2 commentaires
Sean de Wolski
le 2 Nov 2012
sum(C(1:30))
If you evaluate at the MATLAB command line:
>>doc sum
It will tell you all about summing.
Plus de réponses (1)
Voir également
Catégories
En savoir plus sur Loops and Conditional Statements dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!