Signal Processing Toolbox    

Accessing Parameters in a Saved Spectrum

The following structure fields describe the spectra saved by SPTool.

Field
Description
P
The spectral power vector.
f
The spectral frequency vector.
confid
A structure containing the confidence intervals data:

The confid.level field contains the chosen confidence level.

The confid.Pc field contains the spectral power data for the confidence intervals.

The confid.enable field contains a 1 if confidence levels are enabled for the power spectral density.

signalLabel
The name of the signal from which the power spectral density was generated.
Fs
The associated signal's sample rate.

You can access the information in these fields as you do with every MATLAB structure.

For example, if you export an SPTool PSD estimate spect1 to the workspace, type

to obtain the vector of associated power values.


 Accessing Filter Parameters in a Saved Filter Importing Filters and Spectra into SPTool