I am trying to convert a matlab level 2 s function block into a normal function script. For that I need to understand the working of S function. Specifically, how are the differential equations being solved by Derivative call back. Is it using simulation time step as the delta-time ? what other parameters it obtains from simulation environment for these calculations. Anyone having any Idea, please help me out. Also I want my functions to be c-coder compatible, so I am unable use of 'syms' or other c-coder incompatible stuff.
coderlevel 2 s functoinmatlab coderpersistentsimulinksimulink coder