Синтаксис псевдоспектра объекта будет удален в будущем. В следующей таблице приведен эквивалентный рекомендуемый синтаксис функции. Таблица использует spectrum.music
и функциональный эквивалент, pmusic
, но синтаксические замены также действительны для spectrum.eigenvector
кому peig
. В каждом примере x
- входной сигнал.
Устаревший синтаксис |
Синтаксис замены |
---|---|
h = spectrum.music(nsinusoids); pseudospectrum(h,x); |
pmusic(x,nsinusoids) |
h = spectrum.music(nsinusoids);
pseudospectrum(h,x,'Fs',fs)
|
pmusic(x,nsinusoids,[],fs); |
h = spectrum.music(nsinusoids,segLen,ovlpPct,... 'Hamming'); pseudospectrum(h,x) |
win = hamming(segLen) Noverlap = ceil(ovlpPct/100*segLen); P = nsinusoids; Fs = 2*pi; pmusic(x,P,[],Fs,win,Noverlap); |
h = spectrum.music(nsinusoids,segLen,ovlpPct,...
winName,thresh);
pseudospectrum(h,x)
|
win = winfunc(segLen) Noverlap = ceil(ovlpPct/100*segLen); P = [nsinusoids thresh]; Fs = 2 *pi; pmusic(x,P,[],Fs,win,Noverlap); |
h = spectrum.music(nsinusoids,segLen,... ovlpPct,winName,thresh); pseudospectrum(h,x,'Fs',fs) |
win = hamming(segLen) nfft = max(256,2^nexpow2(segLen)); Noverlap = ceil(ovlpPct/100*segLen); P = [nsinusoids thresh]; pmusic(x,P,[],Fs,win,Noverlap); |
h = spectrum.music(nsinusoids,segLen,... ovlpPct,winName,thresh); pseudospectrum(h,x,'Fs',fs,'SpectrumRange',range) |
win = hamming(segLen) Noverlap = ceil(ovlpPct/100*segLen); P = [nsinusoids thresh]; pmusic(x,P,[],Fs,range,win,Noverlap); |
h = spectrum.music(nsinusoids,segLen,... ovlpPct,winName,thresh); pseudospectrum(h,x,'Fs',fs,'SpectrumRange',range,'NFFT',nfft) |
win = hamming(segLen) Noverlap = ceil(ovlpPct/100*segLen); P = [nsinusoids thresh]; pmusic(x,P,nfft,Fs,range,win,Noverlap); |
h = spectrum.music(nsinusoids,segLen,... ovlpPct,winName,thresh); pseudospectrum(h,x,...,'FreqPoints','User Defined',... 'Frequency Vector',fVec) |
win = hamming(segLen) Noverlap = ceil(ovlpPct/100*segLen); P = [nsinusoids thresh]; pmusic(x,P,fVec,Fs,range,win,Noverlap); |
h = spectrum.music(...,'DataMatrix'); pseudospectrum(...) |
nfft = min(256,2^nextpow2(size(x,1))); pmusic(x,P,nfft,Fs,range,win) |
h = spectrum.music(...,'CorrelationMatrix'); pseudospectrum(...) |
pmusic(x,P,'corr',nfft,Fs,range,win,Noverlap); % or equivalently pmusic(x,P,'corr',fVec,Fs,range,win,Noverlap); |
h = spectrum.music(...); pseudospectrum(...,'CenterDC',true) |
pmusic(...,'centered'); |
[Spec,F] = pseudospectrum(...) |
[Spec,F] = pmusic(...); |