what to do to run dsp.SpectrumAnalyzer?
7 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
nazmul islam
am 30 Mär. 2017
Beantwortet: Greg Dionne
am 30 Mär. 2017
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
0 Kommentare
Akzeptierte Antwort
Greg Dionne
am 30 Mär. 2017
You might not have the DSP System Toolbox installed.
Try using pwelch() or periodogram()
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Spectral Analysis finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!