Can I use C MEX Functions such as 'mxPutVariable' in an S-Function and then generate code?
Show older comments
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?
Accepted Answer
More Answers (0)
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!