RCUMSUM cumulative sum of elements, restarted after every zero. For vectors, RCUMSUM(X) is a vector containing the cumulative sum of the elements of X, with the summation restarting after a zero is encountered. For matrices, RCUMSUM(X) is a matrix the same size as X containing the cumulative restarted sums over each column. For N-D arrays, RCUMSUM(X) operates along the first non-singleton dimension.
RCUMSUM(X,DIM) works along the dimension DIM.
Also included is RCUMPROD.
For bug reports, please email me.
Thanks
인용 양식
Matt Fig (2024). RCUMSUMC (https://www.mathworks.com/matlabcentral/fileexchange/28685-rcumsumc), MATLAB Central File Exchange. 검색 날짜: .
MATLAB 릴리스 호환 정보
개발 환경:
R2007b
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux카테고리
Help Center 및 MATLAB Answers에서 Arithmetic Operations에 대해 자세히 알아보기
태그
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!RCUMSUMC/
버전 | 게시됨 | 릴리스 정보 | |
---|---|---|---|
1.0.0.0 |