Matlab script - Execute simulink file after running matlab script
Context
I ran the matlab script "config_script.m" to declare all the variables, and I was waiting for the simulink file to open and execute. When I checked the script, I saw that the simulink file is not opened nor executed.
Description
There is no call of the simulink file to execute it directly after declaring all the variables.
Idea of a solution
Add the following lines at the end of the matlab script.
%% Start simulink simulation
open('owntech_model_matlab_simulink_simscape.slx')
sim('owntech_model_matlab_simulink_simscape.slx')