Main Content

Preprocessing and Feature Extraction

Extract signal features in time, frequency, and time-frequency domains

Extract meaningful signal features using command-line functions or the Signal Feature Extractor app to use in machine learning models.

Apps

EDF File AnalyzerView EDF or EDF+ files (Since R2021a)
Signal AnalyzerVisualize and compare multiple signals and spectra
Signal LabelerLabel signal attributes, regions, and points of interest
Signal Feature ExtractorExtract and analyze signal features (Since R2025a)

Functions

expand all

detrendRemove polynomial trend
envelopeSignal envelope
lowpassLowpass-filter signals
smoothdataSmooth noisy data
cwtmag2sigSignal reconstruction from CWT magnitude (Since R2023b)
stftmag2sigSignal reconstruction from STFT magnitude (Since R2020b)
islocalmaxFind local maxima
findchangeptsFind abrupt changes in signal
findpeaksFind local maxima
refinepeaksRefine peak value and location estimates (Since R2024b)
zerocrossrateZero-crossing rate (Since R2021b)
audioDatastoreDatastore for collection of audio files
arrayDatastoreDatastore for in-memory data (Since R2020b)
imageDatastoreDatastore for image data
signalDatastoreDatastore for collection of signals
edfheaderCreate header structure for EDF or EDF+ file (Since R2021a)
edfinfoGet information about EDF/EDF+ file (Since R2020b)
edfreadRead data from EDF/EDF+ file (Since R2020b)
edfwriteCreate or modify EDF or EDF+ file (Since R2021a)
paddataPad data by adding elements (Since R2023b)
resizeResize data by adding or removing elements (Since R2023b)
trimdataTrim data by removing elements (Since R2023b)
meanAverage or mean value of array
rmsRoot mean square value
stdStandard deviation
snrSignal-to-noise ratio
thdTotal harmonic distortion
sinadSignal to noise and distortion ratio
peak2rmsPeak-magnitude-to-RMS ratio
signalTimeFeatureExtractorStreamline signal time feature extraction (Since R2021a)
timeScalarFeatureOptionsStore information for converting time-domain feature vectors to scalar values (Since R2024b)
meanfreqMean frequency
medfreqMedian frequency
bandpowerBand power
obwOccupied bandwidth
powerbwPower bandwidth
pwelchWelch’s power spectral density estimate
signalFrequencyFeatureExtractorStreamline signal frequency feature extraction (Since R2021b)
frequencyScalarFeatureOptionsStore information for converting frequency-domain feature vectors to scalar values (Since R2024b)
stftShort-time Fourier transform
fsstFourier synchrosqueezed transform
emdEmpirical mode decomposition
vmdVariational mode decomposition
hhtHilbert-Huang transform
cwtContinuous 1-D wavelet transform
wsstWavelet synchrosqueezed transform
modwtMaximal overlap discrete wavelet transform
modwptMaximal overlap discrete wavelet packet transform
instbwEstimate instantaneous bandwidth (Since R2021a)
instfreqEstimate instantaneous frequency
spectralCrestSpectral crest for signals and spectrograms
spectralEntropySpectral entropy for signals and spectrograms
spectralFlatnessSpectral flatness for signals and spectrograms
spectralKurtosisSpectral kurtosis for signals and spectrograms
spectralSkewnessSpectral skewness for signals and spectrograms
tfridgeTime-frequency ridges
signalTimeFrequencyFeatureExtractorStreamline signal time-frequency feature extraction (Since R2024a)
timeFrequencyScalarFeatureOptionsStore information for converting time-frequency-domain feature vectors to scalar values (Since R2024a)
timeFrequencyScatteringJoint time-frequency scattering (Since R2024b)
waveletScatteringWavelet time scattering
wsstridgeTime-frequency ridges from wavelet synchrosqueezing
dlcwtDeep learning continuous wavelet transform (Since R2022b)
dlicwtDeep learning inverse continuous 1-D wavelet transform (Since R2024b)
dlmodwtDeep learning maximal overlap discrete wavelet transform and multiresolution analysis (Since R2022a)
dlstftDeep learning short-time Fourier transform (Since R2021a)
dlistftDeep learning inverse short-time Fourier transform (Since R2024a)
cwtLayerContinuous wavelet transform layer (Since R2022b)
icwtLayerInverse continuous wavelet transform layer (Since R2024b)
modwtLayerMaximal overlap discrete wavelet transform layer (Since R2022b)
stftLayerShort-time Fourier transform layer (Since R2021b)
istftLayerInverse short-time Fourier transform layer (Since R2024a)
framelblPartition label sequence into frames (Since R2024a)
framesigPartition signal into frames (Since R2024a)
scalarFeatureOptionsStore information for converting feature vectors to scalar values (Since R2024a)

Related Information

Topics

Featured Examples