How to use spectrum analyzer object to show a signal waveform ?
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Abhishek Bansal
am 18 Feb. 2015
Kommentiert: Abhishek Bansal
am 18 Feb. 2015
hsb = dsp.SpectrumAnalyzer;
0 Kommentare
Akzeptierte Antwort
Honglei Chen
am 18 Feb. 2015
Bearbeitet: Honglei Chen
am 18 Feb. 2015
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
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Spectral Analysis finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!