How to give Initial Condition to Transfer Function
Ältere Kommentare anzeigen
Hello All,
I want the graph to start at 5 after it leaves the transfer function block in Simulink.
However, it starts at zero as default.
I have tried to use the Transfer Fcn with initial inputs but did not succeed -the output osciallates between 5 and -5.
Any help is appreciated. Thanks.
Akzeptierte Antwort
Weitere Antworten (1)
Martín José Caro Sanz
am 13 Dez. 2023
Verschoben: madhan ravi
am 13 Dez. 2023
7 Stimmen
Hello Ali.
There is a simple but effective way to do what you want in Simulink. You only have to change your equilibrium point. Your default initial condition is zero, and you can't change it in the mask of the transfer function, but you can make it manually.
You need to include a "sum" block at the input and at the output of the transfer function block. In the first one you are going to rest your equilibrium point, and in the second one, at the output, you are going to sum your equilibrium point. So the transfer function acts in the signal, but you change your initial point.
Maybe it is more clear if I show you a picture of your specific case.

Hope it helps.
Kategorien
Mehr zu Discontinuities finden Sie in Hilfe-Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!