Main Content
Autoregressive PSD Object to Function Replacement Syntax
The AR PSD object syntax will be removed in the future. The following table gives the
equivalent recommended function syntax. The table uses spectrum.burg
and pburg
as examples, but the object-to-function
replacement syntaxes are valid for all the AR spectral estimators with the appropriate
substitution: spectrum.burg
to pburg
,
spectrum.cov
to pcov
, spectrum.mcov
to pmcov
, and spectrum.yulear
to pyulear
. In each example, x
is the input signal.
Deprecated Syntax |
Replacement Syntax |
---|---|
hBurg = spectrum.burg; psd(hBurg,x); |
pburg(x,4); |
hBurg = spectrum.burg(order); psd(hBurg,x); |
pburg(x,order); |
hBurg = spectrum.burg(order);
psd(hBurg,x,'NFFT',nfft);
|
pburg(x,order,nfft); |
hBurg = spectrum.burg(order);
psd(hBurg,x,'Fs',fs);
|
pburg(x,order,[],fs); |
hBurg = spectrum.burg(order); psd(hBurg,x,'NFFT',nfft,'Fs',fs); |
pburg(x,order,nfft,fs); |
hBurg = spectrum.burg(order); psd(hBurg, x,...,'FreqPoints','User Defined',... 'FrequencyVector',w); |
pburg(x,order,w); |
hBurg = spectrum.burg(order); psd(hBurg,x,'FreqPoints','User Defined',... 'FrequencyVector',f,'Fs',fs); |
pburg(x,order,f,fs); |
hBurg = spectrum.burg psd(...,'SpectrumType','TwoSided'); |
pburg(...,'twosided'); |
hBurg = spectrum.burg; psd(...,'CenterDC',true); |
pburg(x,...,'centered'); |
hBurg = spectrum.burg; psd(...,'ConfLevel',p); |
pburg(x,...,'ConfidenceLevel',p); |
hBurg = spectrum.burg; hPSD = psd(...); Pxx = hPSD.Data; F = hPSD.Frequencies; |
[Pxx,F] = pburg(...); |
hBurg = spectrum.burg; hPSD = psd(...,'ConfLevel',p); Pxx = hPSD.Data; F = hPSD.Frequencies; Pxxc = hPSD.ConfInterval; |
[Pxx,F,Pxxc] = pburg(...); |