what to do to run dsp.SpectrumAnalyzer?

2 次查看(过去 30 天)
Hello, I wonder why the following code showing the error (i.e. Undefined variable "dsp" or class "dsp.SpectrumAnalyzer".)?
fs = 100;t = (0:1/fs:100)'; fc = 10; x = sin(2*pi*t); ydouble = ammod(x,fc,fs);ysingle = ssbmod(x,fc,fs); sa = dsp.SpectrumAnalyzer('SampleRate',fs,'PlotAsTwoSidedSpectrum',false,'YLimits',[-60 40]); step(sa,ydouble)
Regards

采纳的回答

Greg Dionne
Greg Dionne 2017-3-30
You might not have the DSP System Toolbox installed.
Try using pwelch() or periodogram()

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Spectral Analysis 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by