Frequency Feature Extractor
Libraries:
DSP System Toolbox /
Feature Extractors
Description
The Frequency Feature Extractor block extracts the frequency-domain features from the power spectral density (PSD) estimate of the input signal. The block uses the Welch's method of averaged modified periodograms to estimate the power spectral density. For more information, see Algorithms.
You can extract these frequency-domain features from the PSD data.
Mean frequency
Median frequency
Band power
Occupied bandwidth
Power bandwidth
Welch PSD
Peak amplitude
Peak location
For more information on these features, see the parameters section.
Examples
Ports
Input
Output
Parameters
Block Characteristics
Data Types |
|
Direct Feedthrough |
|
Multidimensional Signals |
|
Variable-Size Signals |
|
Zero-Crossing Detection |
|
More About
Algorithms
The Frequency Feature Extractor block extracts the frequency-domain features from the power spectral density (PSD) estimate of the input signal. The block uses the Welch's method of averaged modified periodograms to estimate the power spectral density.
Here are the steps in details.
The Frequency Feature Extractor block buffers the input signal into frames of size WL, where WL is the window length you specify in the Window length parameter. Use the Overlap length parameter to specify the overlap length between frames. Alternately, use the Hop size parameter to specify the number of samples between the start of frames.
Determine the power spectral density (PSD) of each frame using the Welch's method of averaged modified periodograms.
The block splits each data frame further into P overlapping data segments each of length M < WL, overlapping by D samples. You can specify this overlap length using the Overlap length parameter under Extractor parameters for Welch PSD. You can represent the data segments as:
If D = M/2, the overlap is 50%. By default, the block overlaps the data segments by 50%.
If D = 0, the overlap is 0%.
Apply a window to each of the P overlapping data segments in the time domain. For each windowed segment, the block computes the periodogram, squares the magnitude of the result, and divides the result by M.
where U is the normalization factor for the power in the window function and is given by
You can specify the window function w(n) using the Window parameter under Extractor parameters for Welch PSD.
The block calculates the power spectral density for each data segment using the modified periodogram estimator. For more information about the Periodogram method, see
periodogram. To determine the power spectrum density for the entire frame, the block averages the result of the periodograms for all the P data segments using the sliding window method and divides the result by the input sample rate Fs. The averaging reduces the variance, compared to the original frame.
When you select a specific frequency-domain feature to extract, the block extracts the feature from the power spectral density data, outputs it in the column specified by the Feature to output mapping parameter.
Extended Capabilities
Version History
Introduced in R2026a




