This article seems to be somewhat on point. However, I am not familiar with the Simulink part of Matlab. Also, the article focuses on creating standalone apps, which you can do directly through the C engine without simulink. See...
Ditto. I'm having the same problem. One thought that I had was to use the Matlab C engine to call the function sim. This works well if you have an .exe file that calls function sim. However, I need to have a .dll call sim. Matlab's docs for the compiler for C engine show how to compile .exe...