필터 지우기
필터 지우기

Can movsum be modified a way, so that it will gain the following output:

조회 수: 1 (최근 30일)
A=[1,2,3,4,5,6,7,8,9] B=movsum(A,?) B=[1,3,6,10,15,21,28,36,45] My aim is to build a sum along the vector; adding a value to the previous sum. Thanks for helping.

채택된 답변

Walter Roberson
Walter Roberson 2018년 9월 18일
cumsum()
  댓글 수: 2
Stephen23
Stephen23 2018년 9월 18일
편집: Stephen23 2018년 9월 18일
Note that cumsum is the very first function listed in movsum's "See Also" list, so it is quite easy to find, even starting from just knowing movsum.
Benedikt Wessel
Benedikt Wessel 2018년 9월 18일
Thanks guys, Matlab is quite new to me.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Interactive Control and Callbacks에 대해 자세히 알아보기

태그

제품


릴리스

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by