Cumulatively sum numbers in an array between two indices
10 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Hi,
Lets say I have an array with 10 positions as in the picture, for example.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/569049/image.png)
I want to add all the numbers between Index 4 and index 8, and get my answer of 150
What would be the best way of going about this?
Thanks
0 commentaires
Réponse acceptée
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Matrix Indexing dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!