File Exchange

image thumbnail

RCUMSUMC

version 1.0 (5.95 KB) by

RCUMSUM cumulative sum of elements, restarted after every zero.

2 Downloads

Updated

View License

 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

Comments and Ratings (0)

MATLAB Release
MATLAB 7.5 (R2007b)
Tags Add Tags

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video