For my project I need to generate a sine wave using matlab which has 100 000 samples and the frequency changes randomly after every 10 000 samples. The sampling rate and the frequencies can be as per convenience. Is there any function in matlab to generate this?
sayasaya
3 Answers
But in your scenario, you have a composite spectrum and it appears to me that you want a flat spectrum which is roughly referred to as chopping off. When you try to chop off the signal using any filters (let it be Guassian), it also chops off the actual spectrum and the added noise spectrum on top of that.
OK another example: to generate 5 randon frequencies :-)
ederwanderederwander
Hello I know of no ready function to do this in matlab, but do it in matlab is quite simple, a simple example of how to generate 10 000 samples in 450Hz
ederwanderederwander
Here is an example for different sequential frequencies.
Kyung Seo KiKyung Seo Ki