Descriptive Statistics

Peaks, RMS level, peak-to-peak amplitude, crest factor, dynamic time warping, CUSUM control chart, edit distance

Use findpeaks to locate the local maxima of a signal and sort the peaks by height, width, or prominence. Determine the crest factor of a signal using the peak2rms function and compute common descriptive statistics like maxima, minima, standard deviations, and RMS levels. Search for signals of interest in larger data sets and align signals in time. Locate points where a signal changes abruptly or drifts beyond a target range. Label signals for analysis or machine and deep learning applications.

Apps

Signal AnalyzerVisualize and compare multiple signals and spectra
Signal LabelerLabel signal attributes, regions, and points of interest

Functions

expand all

cummaxCumulative maximum
cumminCumulative minimum
envelopeSignal envelope
maxMaximum elements of an array
meanAverage or mean value of array
meanfreqMean frequency
medfreqMedian frequency
medianMedian value of array
minMinimum elements of an array
movmadMoving median absolute deviation
movmedianMoving median
peak2peakMaximum-to-minimum difference
peak2rmsPeak-magnitude-to-RMS ratio
rmsRoot-mean-square level
rssqRoot-sum-of-squares level
seqperiodCompute period of sequence
stdStandard deviation
varVariance
alignsignalsAlign two signals by delaying earliest signal
cusumDetect small changes in mean using cumulative sum
dtwDistance between signals using dynamic time warping
edrEdit distance on real signals
findchangeptsFind abrupt changes in signal
finddelayEstimate delay(s) between signals
findpeaksFind local maxima
findsignalFind signal location using similarity search
labeledSignalSetCreate labeled signal set
signalLabelDefinitionCreate signal label definition
signalMaskModify and convert signal masks and extract signal regions of interest
binmask2sigroiConvert binary mask to matrix of ROI limits
extendsigroiExtend signal regions of interest to left and right
extractsigroiExtract signal regions of interest
mergesigroiMerge signal regions of interest
removesigroiRemove signal regions of interest
shortensigroiShorten signal regions of interest from left and right
sigroi2binmaskConvert matrix of ROI limits to binary mask

Topics

RMS Value of Periodic Waveforms

Find the root mean square value of a sine wave, a square wave, and a rectangular pulse train.

Find Peaks in Data

Locate the local maxima in a set of data and determine if those peaks occur periodically.

Prominence

The prominence of a peak measures how much the peak stands out due to its intrinsic height and its location relative to other peaks.

Human Activity Recognition Simulink Model for Smartphone Deployment (Statistics and Machine Learning Toolbox)

Generate code from a classification Simulink® model prepared for deployment to a smartphone.

Choose an App to Label Ground Truth Data

Decide which app to use to label ground truth data: Image Labeler, Video Labeler, Ground Truth Labeler, Lidar Labeler, Signal Labeler, or Audio Labeler.

Featured Examples