what to do to run dsp.SpectrumAnalyzer?
조회 수: 1 (최근 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
댓글 수: 0
채택된 답변
Greg Dionne
2017년 3월 30일
You might not have the DSP System Toolbox installed.
Try using pwelch() or periodogram()
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Spectral Analysis에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!