Is it possible to run/simulate a referenced simulink model(of subsystem A) from inside a Matlab function block of another model(Model B)? My design requires me to run a simulation of a subsystem A inside another model B. I cannot directly use the referenced model of the subsystem A in my main model B because it is time dependent and the output of the subsystem A is used as an input in the main model B. Thank you guys!