how do i create a sound signal whose frequency increase after every second in simulink

3 次查看(过去 30 天)
this gives me a sound signal of a constant frequency of generated sine wave. now i want this frequcny to increase by 200hz every second.
e.g
1st sec: 100Hz
2nd sec: 300Hz
3rd sec: 500Hz
and so on...
how do i increase in frequcny after a specific period?

回答(1 个)

Aghamarsh Varanasi
Aghamarsh Varanasi 2020-11-11
Hi,
1. You can use a ‘chirp’ block to generate a sine wave with increasing frequency with time. You can tune the block parameters of the chirp block accordingly to achieve the desired output.
Refer to this Documentation Page.
2. If you need to increment the frequency of the sine wave after a time interval, you can model the sine wave as a function of Amplitude, frequency and time.
y = amplitude * sin( frequency * time + phase) + bias;
- For Example, Sine wave can be modeled in the following way as a function of amplitude, frequency and time, as mentioned in What can I do if I really need to change the parameter of a block every time step?” section of this blog post.

标签

产品


版本

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by