S-function builder external function
4 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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.
Thank you
3 Kommentare
Walter Roberson
am 20 Okt. 2017
mex is used to compile C, C++ or Fortran.
Have you looked at the Symbolic Toolbox facilities for odes? In particular, you can build ODE symbolically, and then go through a couple of steps to convert them into MATLAB functions that can be called with ode45*() or the like.
Antworten (0)
Siehe auch
Kategorien
Mehr zu Simulink Coder finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!