Main Content

Measurements and Statistics

R2026b
Bistate waveform measurements, variance, histogram, autocorrelation

You can use DSP System Toolbox™ blocks and System objects to measure the moving statistics and stationary statistics of signals in MATLAB® and Simulink®. Moving statistics refer to the statistics of streaming signals that change with time. In the sliding window method for computing moving statistics, a window of specified length moves over the data sample by sample as the new data comes in. The objects and blocks compute the statistics of the data within this window. The exponential weighting method applies a set of weights to the data samples and processes the weighted data. These weights are computed recursively based on the age of the data. For stationary statistics, the blocks and objects compute the statistics of all the data that is available in a batch.

Objects

expand all

dsp.MedianFilterMedian filter
dsp.MovingAverageMoving average
dsp.MovingMaximumMoving maximum
dsp.MovingMinimumMoving minimum
dsp.MovingRMSMoving root mean square (RMS)
dsp.MovingStandardDeviationMoving standard deviation
dsp.MovingVarianceMoving variance
powermeterMeasure power and CCDF of the power of voltage signal
dsp.PeakToRMSPeak-to-root-mean-square value of vector

Blocks

expand all

Median Filter blockMedian FilterMedian filter
Moving Average blockMoving AverageMoving average
Moving Maximum blockMoving MaximumMoving maximum
Moving Minimum blockMoving MinimumMoving minimum
Moving RMS blockMoving RMSMoving root mean square (RMS)
Moving Standard Deviation blockMoving Standard DeviationMoving standard deviation
Moving Variance blockMoving VarianceMoving variance
Power Meter blockPower MeterMeasure power and the CCDF of the power of voltage signal in Simulink
Autocorrelation blockAutocorrelationAutocorrelation of N-D array
Correlation blockCorrelationCross-correlation of two inputs
Maximum blockMaximumMaximum values of input or sequence of inputs
Mean blockMeanFind mean value of input or sequence of inputs
Median blockMedianMedian value of input
Minimum blockMinimumMinimum values of input or sequence of inputs
RMS blockRMSRoot mean square value of input or sequence of inputs
Sort blockSortSort input elements by value
Standard Deviation blockStandard DeviationStandard deviation of input or sequence of inputs
Variance blockVarianceVariance of input or sequence of inputs
Histogram blockHistogramHistogram of input or sequence of inputs

Topics

Moving Statistics

Stationary Statistics

Power Measurements

Applications

Variable-Size Signal Support

Featured Examples