How to specify initial conditions in a differential equation editor (DEE) in Simulink with an m-file?

8 views (last 30 days)
Hello,
Does anybody know how to specify initial conditions (I.C.s) of the variables (x(.)) in a differential equation editor (DEE) in Simulink with an m-file? I am using DEE to solve a set of ordinary differential equations (ODEs), and the I.C.s of the x(.) are dependent on the input parameters (u(.)), which are constants. I know how to specify the u(.) with an m-file so I can change u(.) quite easily. However, every time I changed u(.), I also had to change the I.C.s of x(.) manually, which is not very convenient because I cannot write a loop in this situation. Can somebody help me? Any help would be much appreciated.
Best,
Chia-Hung

Answers (0)

Categories

Find more on Simulink in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!