I'm working on a big simulink model, that needs a long time to run and simulate. I'm looking for a way to reduce the time to run. I think in use the simulink coder to generate C code from my model and after compile it in a MEX function to make the model a callable function to matlab scripts. May be it possible ? Some one have experience in do it ?