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!