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 Center および File ExchangeSpectral Analysis についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by