Why does the PBURG function in the Signal Processing Toolbox 6.

Illustration
Samantha - 2021-03-17T09:58:02+00:00
Question: Why does the PBURG function in the Signal Processing Toolbox 6.

Why does the PBURG function in the Signal Processing Toolbox 6.2 (R14) throw an error message for some sampling frequencies? Why does the PBURG function in the Signal Processing Toolbox 6.2 (R14) throw an error message for some sampling frequencies?   For example: dt = 9.999999999999787e-003; pburg(1:1000, 4, 256, 1/dt) Produces the following error message: ??? Error using ==> abstractfreqresp.initialize>setdefaultsnparse Frequency vector cannot contain frequency points outside the Nyquist frequency interval, i.e., frequencies must lie within the range 0 to 50 Hz. Error in ==> pburg at 63 hpsd = dspdata.psd(Pxx,freq{:},'SpectrumType',options.range);

Expert Answer

Profile picture of Kshitij Singh Kshitij Singh answered . 2025-11-20

This bug has been fixed for Release 14 (R14). For previous releases, please read below for any possible workarounds:
This has been verified as a bug in  Signal Processing Toolbox 6.2 (R14) in the way that PBURG handles some sampling frequencies.
Currently, to work around this issue, try rounding the sampling frequency.
For example, instead of
 
dt = 9.999999999999787e-003;

try:

dt = 0.01

You can also try using Signal Processing Toolbox 6.1 (R13SP1).


Not satisfied with the answer ?? ASK NOW

Get a Free Consultation or a Sample Assignment Review!