How to display different frequencies all at once onto the Spectrum Analyzer in Simulink?

조회 수: 1 (최근 30일)
Dear Sir,
I have trouble in displaying different frequencies, e.g: 10 to 20 GHz all at once onto the Spectrum Analyzer in Simulink.
I have attached my model, named: Testing_Different_Frequencies_V3 in this help request.
So please provide me with some suggestion/feedback in how i can display different frequencies all at once onto the Spectrum Analyzer in Simulink.
Thanks and regards
Kei Lam

채택된 답변

Joel Van Sickel
Joel Van Sickel 2022년 8월 8일
Hello Kei,
the first issue is how the sin is being generated. The blocks you are using package the sine output into frames, so it isn't a single signal, but actually a frame with 1024 data points. This isn't how the data can be formated for the blocks you have connected the sin waves to. I would start with the standard sine wave block for your first attempt. You can add a zero order hold to convert it to a fixed time step for the spectrum analyzer. I set the time step to 1/(20e9)/10, which is 10 samples per cycle of your fastest frequency. This step could be skipped if you set all three sin wave blocks to a fixed step, but I like to start with a continuous system.
Regards,
Joel
  댓글 수: 1
Kei
Kei 2022년 8월 25일
Hi Joel,
Thanks for the reply and now i understand a bit more about the Matlab.
Kind regards
Kei Lam

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Signal Generation에 대해 자세히 알아보기

제품


릴리스

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by