n x 1 array, add row-wise

2 vues (au cours des 30 derniers jours)
leevejong
leevejong le 21 Août 2019
Modifié(e) : Stephan le 21 Août 2019
Hello all,
i've got an 832x1 array with distances in meter, looking like that:
1
3
4
5
3
8
3
How do i add up those distances row-wise to get something like that:
1
4
8
13
16
24
27
I read through the 'sum' help but could not find the right answer. Nevertheless it should be a 1 second task..
Thanks in advance!!

Réponse acceptée

Stephan
Stephan le 21 Août 2019
Modifié(e) : Stephan le 21 Août 2019
  1 commentaire
leevejong
leevejong le 21 Août 2019
Thank you Stephan!

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Logical 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!

Translated by