S-function builder external function
1 view (last 30 days)
I am trying to solve a system of ODEs using S-function builder in Simulink to program the system of equations. The system of equations use an external MATLAB function that I programmed separately. The external function can be called from a MEX compiled code that uses base functions written in C++. I was wondering if the external function prompt in the S-function builder would allow for using the compiled MEX code and call the aforementioned MATLAB function so I can integrate it into my system of ODEs.