Access Simulink Solver in S-Function

Hello
How can I access the Simulink Solver(Integrator) and other Configuration Parameters (StepWidth, Starttime, Stoptime) within a s-function? So far I just found a solution using gcs but I hope theres another/better way.

 Accepted Answer

Christia
Christia on 10 Mar 2014
To access the Simulink solver, you ve to set up the continus states and write the fucntion mdlDerivative. http://www.goddardconsulting.ca/simulink-sfunction-integrator.html

More Answers (0)

Categories

Find more on General Applications in Help Center and File Exchange

Products

Asked:

on 28 Jan 2014

Answered:

on 10 Mar 2014

Community Treasure Hunt

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

Start Hunting!