Signal Processing Toolbox | ![]() ![]() |
Spectral Analysis in the Spectrum Viewer
You can analyze the frequency content of a signal using the Spectrum Viewer, which estimates and displays a signal's power spectral density.
For example, to analyze and compare the spectra of noise
and blnoise
:
spect1
, that is associated with the signal noise
, and a second power spectral density object, spect2, that is associated with the signal blnoise
.
Creating a PSD Object From a Signal
[vector]
signal in the Signals list of SPTool.
The Spectrum Viewer is activated, and a power spectral density object
(spect1
) corresponding to the noise
signal is created in the Spectra list.
The power spectral density is not computed or displayed yet.
spect1
using the default parameters.
The power spectral density of the noise
signal is displayed in the display
region. The identifying information for the power spectral density's
associated signal (noise
) is displayed above the Parameters region.
The power spectral density estimate spect1
is within 2 or 3 dB of 0, so the
noise has a fairly "flat" power spectral density.
spect2
.
The power spectral density estimate spect2
is flat between 750 and 1250 Hz
and has 75 dB less power in the stopband regions of filt1
.
Opening the Spectrum Viewer with Two Spectra
spect1
and spect2
in the Spectra list to select them both.
Printing the Spectra
Before printing the two spectra together, use the color and line style selection button,
, to differentiate the two plots by line style, rather than by color.
![]() | Playing a Signal | Exporting Signals, Filters, and Spectra | ![]() |