How to input non-zero initial conditions into the integrator block for Simulink?

4 ビュー (過去 30 日間)
S M
S M 2017 年 7 月 29 日
回答済み: Sivsankar 2024 年 9 月 9 日
You can set initial values such as y(0) = 1 very easy but how do you set initial conditions for nonzeor values such as y(1)=5 or y(2) = 10 with the integrator block in simulink?

回答 (1 件)

Sivsankar
Sivsankar 2024 年 9 月 9 日
Hi S M,
The integrator block only allows you to provide an initial condition. You can do this by specifying the initial condition source. You can learn more about the integrator block from here:
A workaround would be to add a step block and compute the sum of both the integrator and step block. Configure the step block such that the step block is triggered at the desired time where you want to add nonzero initial condition (eg. for t = 1, set output value 5) in the step block. You can leverage the documentation on step block as follows:
Thanks

カテゴリ

Help Center および File ExchangeGeneral Applications についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by