How to use spectrum analyzer object to show a signal waveform ?

조회 수: 2 (최근 30일)
Abhishek Bansal
Abhishek Bansal 2015년 2월 18일
댓글: Abhishek Bansal 2015년 2월 18일
hsb = dsp.SpectrumAnalyzer;

채택된 답변

Honglei Chen
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 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