What does dsp.SpectrumAnalyzer do under the hood?

조회 수: 1 (최근 30일)
MAWE
MAWE 2022년 8월 31일
댓글: Walter Roberson 2022년 8월 31일
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));

답변 (1개)

Walter Roberson
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
MAWE
MAWE 2022년 8월 31일
Thanks for taking the time to reply. I may have not been clear, what does it do with the frequency-domain signal (fft(x)) to get the plot?
Walter Roberson
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 CenterFile Exchange에서 MATLAB에 대해 자세히 알아보기

제품


릴리스

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by