MATLAB: Does the PBURG function in the Signal Processing Toolbox 6.2 (R14) throw an error message for some sampling frequencies

abstractfreqresp.initializepburgr14prereleaseSignal Processing Toolbox

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);

Best Answer

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).