ı want to run a simulink file by m file .So, ı use 'sim' command.
but when ı use it , simulink interface is opened.
Can we run simulink by m file when simulink interface is not opened
Yes, you can use the LOAD_SYSTEM command to load the model into memory without bringing up the Simulink interface, for example:
>> model = 'sldemo_househeat'; >> load_system(model) >> sim(model)
Play games and win prizes!Learn more