Main Content

Subspace Pseudospectrum Object to Function Replacement Syntax

The pseudospectrum object syntax will be removed in the future. The following table gives the equivalent recommended function syntax. The table uses spectrum.music and the functional equivalent, pmusic, but the syntax replacements are also valid for spectrum.eigenvector to peig. In each example, x is the input signal.

Deprecated Syntax

Replacement Syntax

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