0
votes

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!

1

1 Answers

1
votes

As stated here, your approach to "replace your simulation subsystem by a Matlab Function block that runs/calls the referenced model as a simulation independent of the main simulation" should work "perfectly fine".