FUNCTION REFERENCE

movvar

Moving variance.

Moving variance.

Syntax

y = movvar(A, k[, 0|1][, dim][, nanflag][, 'Endpoints', e])

Accepts real double, single and logical data; single results retain their class.

A scalar k centers each window, with one extra sample behind for even k. [kb kf] specifies the samples before and after. The default dimension is the first nonsingleton dimension. The default NaN policy is includenan; omitnan and includenan are accepted. Endpoints may be shrink (default), discard, fill, or a scalar. Standard deviation and variance use sample normalization (0); 1 selects population normalization.

Example

movvar([1 3 5], 3)   % [2 4 2]

Differences from MATLAB: Complex data, SamplePoints and dimensions above 2 are not supported yet.

These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.