How to solve two differential equation systems sequentially?
์ด์ ๋๊ธ ํ์
I have two differential equation systems. Solving procedure should start with the first one and solve it with a initial condition. Then, when the solution reaches a threshold, it should switch to the second system and used the final states of the first system as initial conditions of the second system. I have modeled both systems in Simulink. How can I linked them together properly? I used switches and if but it didn't work properly.
๋๊ธ ์: 1
Walter Roberson
2016๋
6์ 14์ผ
If you were doing it at the MATLAB level, I would suggest using event functions to detect that the threshold had been reached and terminate the first ode.
๋ต๋ณ (1๊ฐ)
Ruwini
2025๋
5์ 15์ผ
0 ๊ฐ ์ถ์ฒ
๐๐^๐ฅ/๐๐ก= โ|๐|^1/2*๐2^2*๐^๐ฅโ๐๐๐^๐ฆ/๐๐โ๐^๐ฅ/2๐1=0 (1)
๐๐^๐ฆ/๐๐ก= โ|๐|^1/2*๐2^2*๐^๐ฆ+๐๐๐^๐ฅ/๐๐โ๐^๐ฆ/2๐1+๐บ๐
๐^๐ง=0 (2)
๐๐^๐ง/๐๐ก= โ|๐|^1/2^๐2^2*๐๐งโ๐บ๐
*๐^๐ฆโ๐^๐ง/๐1=0 I want ode45 MATLAB code for solving this
๋๊ธ ์: 1
์นดํ ๊ณ ๋ฆฌ
๋์๋ง ์ผํฐ ๋ฐ File Exchange์์ General Applications์ ๋ํด ์์ธํ ์์๋ณด๊ธฐ
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!