What does dsp.SpectrumAnalyzer do under the hood?
1 次查看(过去 30 天)
显示 更早的评论
I have the below code that displays the spectrum of a signal. However, before ploting this spectrum I want the original frequency-domain signal from which this spectrum is derived. What does the object dsp.SpectrumAnalyzer do exactly to plot the spectrum?
data = 2.*randi([0 1], 1e6, 1)-1;
txFilter = comm.RaisedCosineTransmitFilter;
filteredData = txFilter(data);
rxSignal = awgn(filteredData, 20);
freqAnalyzer = dsp.SpectrumAnalyzer('SampleRate',8e6);
freqAnalyzer((rxSignal));
0 个评论
回答(1 个)
Walter Roberson
2022-8-31
What it does "exactly" is set up a matlabshared.scopes.UnifiedSystemScope() and then update() the scope with the data.
2 个评论
Walter Roberson
2022-8-31
That is hidden inside .p files.
I could have another look to see if I could forgot to "step in" but I am not hopeful.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Spectral Measurements 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!