Array operation inside summing
조회 수: 1 (최근 30일)
이전 댓글 표시
I would like to make an array "A" from another array called "B" by summing up all previous elements till that element position ....please see below example
A=[1 2 3 4 5] and B array has to as follows
B=[1 1+2 1+2+3 1+2+3+4 1+2+3+4+5]
Please help me out I have quiet a big array to sum up like this.
채택된 답변
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Multidimensional Arrays에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!