MATLAB: How to run Simulink command without opening those model windows

MATLABsimulink

I'm working on the project that request running those Matlab/Simulink command such like 'open_system()', 'model([],[],[],'compile')' in the cmd command window. So how to run it without throwing out the model windows the matlab window? I've tried '-automation -nodesktop'. But doesn't work. Thanks a lot!

Best Answer

Use load_system instead of open_system.
After you finish with the model, use close_system to unload the model from memory.
Related Question