Use the
ma = Simulink.ModelAdvisor.getModelAdvisor(system,new)
method to return an instance of a Simulink.ModelAdvisor class for the
model or subsystem that you specify by using the system input
argument.
This argument is optional except when changing the Model Advisor working scope from
one system to another without closing the previous session. Alternatively, you can close
the previous session before invoking the getModelAdvisor
method.