FUNCTION REFERENCE
movsum
Moving sum.
Moving sum.
Syntax
S = movsum(A, k)Syntax
S = movsum(A, [kb kf])Syntax
S = movsum(A, k, dim, nanflag, 'Endpoints', e)Same windows and options as movmean. With 'omitnan' a window of only NaN
sums to 0.
Example
movsum([1 2 3 4 5], [2 0]) % [1 3 6 9 12]Differences from MATLAB: k must be an integer; 'SamplePoints', dim 3 or
higher, and complex input are not supported yet and stop with an error.
These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.