How to use spectrum analyzer object to show a signal waveform ?
조회 수: 2 (최근 30일)
이전 댓글 표시
hsb = dsp.SpectrumAnalyzer;
댓글 수: 0
채택된 답변
Honglei Chen
2015년 2월 18일
편집: Honglei Chen
2015년 2월 18일
Its purpose is to show signal's spectrum
fs = 1000;
x = sin(2*pi*200*(0:1999)'/fs);
hsb = dsp.SpectrumAnalyzer('SampleRate', fs);
step(hsb,x)
If you want to see the time domain waveform, you should use dsp.TimeScope instead
fs = 1000;
x = sin(2*pi*5*(0:1999)'/fs);
hts = dsp.TimeScope('SampleRate',fs,'TimeSpan',2);
step(hts,x)
HTH
추가 답변 (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!