MATLAB Answers

Simulink C code generation vs MEX files

2 views (last 30 days)
Jonathan on 8 Jan 2019
Edited: Jonathan on 8 Jan 2019
When generating C code from a Simulink model containing normal-mode references to other models, I can see that MEX files are created in the process for those other models.
As far as I understand, those MEX files are usually created when compiling a model which references other models in accelerator mode. Therefore I don't understand the need to create them when generating C code for a parent model having no accelerator-mode references.
Can anyone explain why this is necessary? If not, how can I bypass the creation of those MEX files when generating code?


Sign in to comment.

Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by