I have an embedded matlab block that contains a decent amount of code. When I start the Simulink model, the status bar shows that it is compiling the embedded matlab block and it takes a really long time (like 30 minutes). Is there a way to debug why it takes the compiler so long and where it would be getting hung up or any optimizations I could do?
MATLAB: Simulink takes a long time to start a model with a Embedded Matlab block
compilerembedded matlab functionsimulinkslow
Best Answer