n x 1 array, add row-wise

조회 수: 1 (최근 30일)
leevejong
leevejong 2019년 8월 21일
편집: Stephan 2019년 8월 21일
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!!

채택된 답변

Stephan
Stephan 2019년 8월 21일
편집: Stephan 2019년 8월 21일
  댓글 수: 1
leevejong
leevejong 2019년 8월 21일
Thank you Stephan!

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by