How do I solve a 2nd ODE using matlab function block in simulink?

1 view (last 30 days)
I am very new to Matlab. Can some one please assist me in solving a 2nd ODE using matlab function block in simulink. Let me give you an idea of my project. I actually have a Matlab function connected in series with two integrator(s). The matlab function is the first block and then the two integrator(s). My Question is where do I write the script for the 1st ode? Do I call it in the Matlab function. If yes, then is there a command to differentiate between the 2nd and the 1st ode. Please let me know how will the matlab differentiate between 2nd and the 1st ode. 2nd question, what is the role of integrator if I have to write the 1st ode in the Matlab function.
Regards.
  1 Comment
Mischa Kim
Mischa Kim on 29 Aug 2014
Mozammil, your question is not quite clear to me. Are you trying to solve one 2nd-order ODE or two separate ODEs?

Sign in to comment.

Answers (0)

Tags

Community Treasure Hunt

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

Start Hunting!