How can I create an impulse (delta) signal in Simulink?
660 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Alessio Conte
el 4 de Mayo de 2018
Comentada: Guy Rouleau
el 23 de Ag. de 2024
How can I create an impulse (delta) signal in Simulink? I looked for it in "Sources" library but there is not.
Respuesta aceptada
Mark Lin
el 27 de Mzo. de 2019
Hi Alessio,
Use a step response block and linked it to a derivative block can create a delta, impulse, signal.
All you need to do is making sure the response time in your system.
Hope it help.
3 comentarios
Fangjun Jiang
el 29 de Mzo. de 2019
Alessio Conte, what is your purpose of needing a pulse in Simulink?
The derivative of a step signal is the impulse signal. But that is only theoritical. Doing that in Simulink, the outcome depends on the sample time.
Jimmy Sølvsteen Nielsen
el 12 de Jun. de 2020
I could see several uses for a pulse function in Simulink. For example adding a defined amount of chemical into a mixing tank volume instantaneously, and having delayed mixing in the tank. calculating output concentration is a common chemical enginering task.
I get that takting the derivative of the step function will depend on the sample time, and I wonder why the Dirac function is not available in the Simulink function library?
Más respuestas (5)
Chul-Goo Kang
el 28 de Dic. de 2019
Use step input and multiply s in the transfer function of the next block.
2 comentarios
Fangjun Jiang
el 4 de Mayo de 2018
Editada: Fangjun Jiang
el 4 de Mayo de 2018
From the note of impulse():
Note: In discrete time, impulse computes the response to a unit-area pulse of length Ts and height 1/Ts where Ts is the sample time. This pulse approaches the continuous-time Dirac impulse delta(t) as Ts goes to zero.
So you will construct a pulse of width as Ts and height as 1/Ts.
2 comentarios
Fangjun Jiang
el 7 de Mayo de 2018
That is correct. When Ts->0, the pulse becomes the theoretical delta (the impulse).
Hiromasa
el 14 de Jun. de 2024
Thank you for your question.
One way to create an impulse signal is to use Hit Crossing block. (https://www.mathworks.com/help/simulink/slref/hitcrossing.html)
As shown below, Hit Crossing outputs an impulse signal of magnitue 1. The gain block after the Hit Crossing amplifies the signal by the factor of 1/t where t is a discrete time step for the system.
Hope this information helps.
0 comentarios
Guy Rouleau
el 23 de Ag. de 2024
This blog post provides an in-depth response to this question:
0 comentarios
Ver también
Categorías
Más información sobre Sources en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!