i am trying to solve lagrange equation of motion using simulink , i already solved it using ode45 . now i want to use level 2 s function to solve it on simulink so i can add controllers on my system ,

I want to make a Simulink model for equation of motion but my equation has matrices that exceeds the maximum length of display , but any how I solve it using ode45 , so is there any way to model it on Simulink ? I thought that level 2 s function can help me on that but I am not sure besides I tried it but I am not getting how actually I put my whole program the example s function provided in matlab.

Answers (0)

Asked:

on 3 Mar 2014

Community Treasure Hunt

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

Start Hunting!