Can I use C MEX Functions such as 'mxPutVariable' in an S-Function and then generate code?
Afficher commentaires plus anciens
I am trying to use C MEX API functions in my S-Function, but I am getting undefined reference compile errors when I don't include 'mex.h", and redefinition compile errors when I include "mex.h". I see that the required "simstruc.h" does include "mex.h". What is causing these errors and how can I use these functions in generated code?
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Simulink Coder dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!