필터 지우기
필터 지우기

How to obtain a set of matrix from another matrix by adding the previous row value along the column to the next row on the same column

조회 수: 2 (최근 30일)
Example
a= 2,4;3,4;2 1
the new matrix will be
b= 2,4;3+2,4+4;2+3+2,1+4+4
along the colums

채택된 답변

per isakson
per isakson 2017년 10월 24일
Is this what you want?
>> cumsum( a, 1 )
ans =
2 4
5 8
7 9

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Multidimensional Arrays에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by