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

5 visualizaciones (últimos 30 días)
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?

Respuestas (1)

Aghamarsh Varanasi
Aghamarsh Varanasi el 11 de Nov. de 2020
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.

Etiquetas

Productos


Versión

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by