Info

This question is closed. Reopen it to edit or answer.

Changing the parameters of the dynamical system in the middle of simulation, Part 3

1 view (last 30 days)
Previously, I have talked about the dynamical system using ODE45
f0to2 = @(t,x) [-x(1)*x(2);x(1)*x(2)-x(2);x(2)]
f2toend = @(t,x) [-0.5*x(1)*x(2);0.7*x(1)*x(2)-x(2);x(2)]
x0 = [4 0.1 0];
[ta,xa]=ode45(f0to2,[0 2], x0);
x0 = xa(end,:);
[tb,xb]=ode45(f2toend,[2 6], x0);
I now try to develop a verson with DDE23. The format of DDE23 is more complicated thatn ODE45
I would like to understand how the code looks like with ODE45.

Answers (0)

Tags

Community Treasure Hunt

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

Start Hunting!