RCUMSUMC

Version 1.0.0.0 (5,95 KB) von Matt Fig
RCUMSUM cumulative sum of elements, restarted after every zero.
616 Downloads
Aktualisiert 10 Sep 2010

Lizenz anzeigen

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

Zitieren als

Matt Fig (2024). RCUMSUMC (https://www.mathworks.com/matlabcentral/fileexchange/28685-rcumsumc), MATLAB Central File Exchange. Abgerufen .

Kompatibilität der MATLAB-Version
Erstellt mit R2007b
Kompatibel mit allen Versionen
Plattform-Kompatibilität
Windows macOS Linux
Kategorien
Mehr zu Arithmetic Operations finden Sie in Help Center und MATLAB Answers

Community Treasure Hunt

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

Start Hunting!
Version Veröffentlicht Versionshinweise
1.0.0.0