Is there an error in the documentation for SPECTRUM.MTM function example in Signal Processing Toolbox 6.2.1 (R14SP1)?
Ältere Kommentare anzeigen
I open the documentation for the SPECTRUM.MTM function in the Signal Processing Toolbox by typing
doc spectrum.mtm
at the MATLAB command window.
I try the following example that is mentioned in the documentation.
Fs=1000;
t=0:1/Fs:.3;
x=cos(2*pi*t*200)+randn(size(t));
[e,v]=dpss(length(x),3.5);
Hs=spectrum.mtm(e,v);
psd(Hs,x,Fs)
Rather than receiving the plot with the Power Spectral Density, I receive the following error
??? Error using ==> spectrum.abstractspectrum.psd
Invalid Parameter/Value pairs.
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Signal Processing Toolbox finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!