How can I model a delay differential equation in simulink?

1 view (last 30 days)
Hi I'm looking to model the following non linear delay differential equation modelling a single point turning situation in Simulink in order to then be able to apply a control to the process. However I'm having difficulty doing so and was hoping someone would help me out?
xddot= -a*xdot - b*(x+x^3 )- c*x(t-1)
Where: xddot is the second derivative of x;
xdot is the first derivate of x;
a, b and c are constants;

Accepted Answer

Shashank Prasanna
Shashank Prasanna on 27 Feb 2013
You can use the delay block:
For the rest you just need integrator blocks and gain blocks.
  3 Comments
James Fraser
James Fraser on 28 Feb 2013
Edited: James Fraser on 28 Feb 2013
Infact, problem solved - it was down to the solver that was being used in simulink causing singularities. Changed to the ode45 solver and its working great.

Sign in to comment.

More Answers (0)

Categories

Find more on General Applications in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!