The Spectrum Estimator block outputs the power spectrum or power-density spectrum of a real or complex input signal, using the Welch method of averaged modified periodograms and the filter bank approach.
When you choose the filter bank approach, the block uses an analysis filter bank to estimate the power spectrum. The filter bank approach produces a spectral estimate with a higher resolution, a more accurate noise floor, and more precise peaks than the Welch method, with low or no spectral leakage. They come at the expense of increased computation and slower tracking.
When you choose the Welch method, the block computes the averaged modified periodograms to compute the spectral estimate. The block buffers the input data into overlapping segments. Use the block parameters to set the length of the data segments, the amount of data overlap between consecutive segments, and other features of the power spectrum.
For more information on the Welch method and the filter bank method, see Algorithms.
Each column of the input signal is treated as a separate channel. If the input is a two-dimensional signal, the first dimension represents the channel length (or frame size) and the second dimension represents the number of channels. If the input is a one-dimensional signal, then it is interpreted as a single channel.
Specify the spectral estimation method.
Number of taps per band
Specify the number of filter coefficients, or taps, for each frequency band. This value corresponds to the number of filter coefficients per polyphase branch. The total number of filter coefficients is equal to Number of taps per band times the FFT length.
This parameter applies when you set Method to Filter bank . The default is 12.
Spectrum type
Type of spectrum to compute. You can set this parameter to:
This parameter is nontunable.
Frequency resolution method
Frequency resolution method. You can set this parameter to:
This parameter is nontunable.
RBW (Hz)
Resolution bandwidth, specified as a positive scalar in Hz. The default is 5 . This parameter applies when you set Frequency resolution method to RBW . The ceiling of the ratio of the frequency span to RBW must be greater than 2 .
This parameter is nontunable.
Number of bands source
Source of the number of frequency bands. This parameter applies when you set Method to Filter bank and Frequency resolution method to Number of frequency bands . You can set this parameter to:
This parameter is nontunable.
Number of bands
Number of frequency bands, or the FFT length the filter bank uses to compute the power spectral estimate, specified as a positive scalar. The default is 1024 . This parameter applies when you set Method to Filter bank , Frequency resolution method to Number of frequency bands , and Number of bands source to Specify on dialog . This parameter is nontunable.
Window length source
Source of the window length value. This parameter applies when you set Method to Welch and Frequency resolution method to Window length . You can set this parameter to:
This parameter is nontunable.
Window length
Length of the window used to compute the spectrum estimate, specified as a positive integer scalar greater than 2 . The default is 1024 . This parameter applies when you set Method to Welch , Frequency resolution method to Window length , and Window length source to Specify on dialog . This parameter is nontunable.
FFT length source
Source of the FFT length value. This parameter applies when you set Method to Welch and Frequency resolution method to Window length . You can set this parameter to:
This parameter is nontunable.
FFT length
Length of the FFT used to compute the spectrum estimates, specified as a positive integer scalar. This parameter applies when you set Method to Welch , Frequency resolution method to Window length , and FFT length source to Property . The default is 1024 . This parameter is nontunable.
Inherit sample rate from input
When you select this check box, the block sample rate is computed as N/Ts, where N is the frame size of the input signal and Ts is the sample time of the input signal.
This check box applies when you do one of the following:
When you clear this check box, the block sample rate is the value you specify in Sample rate (Hz). By default, this check box is selected. This parameter is nontunable.
Sample rate (Hz)
Sample rate of the input signal, specified as a positive scalar. The default is 44100 . This parameter applies when you do one of the following:
This parameter is nontunable.
Window function
Window function the Welch algorithm uses, specified as one of Chebyshev | Flat Top | Hamming | Hann | Kaiser | Rectangular . This parameter appears when you set Method to Welch . The default is Hann . This parameter is nontunable.
Sidelobe attenuation of window (dB)
Sidelobe attenuation of the window, specified as a real positive scalar greater than or equal to 45 , in dB. The default is 60 . This parameter appears when you set Method to Welch and Window function to Chebyshev or Kaiser . This parameter is nontunable.
Averaging method
Specify the averaging method as Exponential (default) or Running . In the exponential method, the block computes the average over samples weighted by an exponentially decaying forgetting factor. In the running averaging method, the block computes an equally weighted average of specified number of spectrum estimates defined by Number of spectral averages parameter.
Number of spectral averages
Number of spectral averages, specified as a positive integer scalar. The default is 1 . The spectrum estimator computes the current power spectrum estimate by averaging the last N power spectrum estimates, where N is the number of spectral averages defined in Number of spectral averages. This parameter is nontunable.
This parameter applies when Averaging method is set to Running .
Specify forgetting factor from input port
Select this check box to specify the forgetting factor from an input port. When you do not select this check box, the forgetting factor is specified through the Forgetting factor parameter.
This parameter applies when Averaging method is set to Exponential .
Forgetting factor
Specify the exponential weighting forgetting factor as a scalar value greater than zero and smaller than or equal to one. The default is 0.9 .
This parameter applies when you set Averaging method to Exponential and clear the Specify forgetting factor from input port parameter.
Percentage of overlap between successive data windows, specified as a scalar from 0 and 100 . The default value is 0 . To enable this parameter, on the Main Tab, set Method to Welch . This parameter is nontunable.
Reference load (ohms)
Load used as a reference to compute the power values, specified as a real positive scalar expressed in ohms. The default value is 1 . This parameter is nontunable.
Frequency range
Frequency range of the spectrum estimator. You can set this parameter to:
This parameter is nontunable.
Power units
Units used to measure power. You can set this parameter to:
This parameter is nontunable.
Output max-hold spectrum
When you select this check box, the block computes the max-hold spectrum of the input signal by keeping, at each frequency bin, the maximum value of all the power spectrum estimates. By default, this check box is not selected. This parameter is nontunable.
Output min-hold spectrum
When you select this check box, the block computes the min-hold spectrum of the input signal by keeping, at each frequency bin, the minimum value of all the power spectrum estimates. By default, this check box is not selected. This parameter is nontunable.
Output frequency vector
When you select this check box, the block outputs the frequency vector. By default, this check box is not selected. This parameter is nontunable.
Output effective RBW
When you select this check box, the block computes the effective resolution bandwidth. By default, this check box is not selected. This parameter is nontunable.
Simulate using
Type of simulation to run. You can set this parameter to: