![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1100935/image.jpeg)
RF CW signal generator in MATLAB/Simulink
23 views (last 30 days)
Show older comments
Fumihiko Sato
on 18 Aug 2022
Commented: Fumihiko Sato
on 18 Aug 2022
Hello everyone,
I am trying to create the CW (Continuous Wave) at the specific frequency (What I want is varry around 900 MHz) like the RF signal generator to use it as an interferer of the primary signal from the transmitter
What I understand is we can just use the sinwave source at desire frequency. Then we will have a signal in frequency domain.
anyway, I tried to simulate using the DSP sinewave and Spectrum analyzer (as shown below) but seems not as I expected (I generated at 900 MHz, stop time = infinity. But center of signal is showing at 0 Hz)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1100895/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1100900/image.png)
I am not sure there is any misconfigure on my configuration?
So, this is still be possible to simulate the CW source at RF frequency?
Best Regards,
Fumihiko Sato
0 Comments
Accepted Answer
Abderrahim. B
on 18 Aug 2022
Hi!
Spectrum analyzer block inherits sample rate from the sineWave block, as it is shown on the sinewave wave block the sample rate was not set with respect to sampling theorem ( I assume you know this theorem).
Check the below picture.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1100935/image.jpeg)
f is equal to to 900e6.
Hope this helps.
More Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!