Main Content

Simulink.ModelAdvisor.getModelAdvisor

Get Model Advisor object for system or subsystem

Description

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.

Input Arguments

collapse all

Name of model or subsystem for which you obtain the corresponding Simulink.ModelAdvisor object.

Example: 'sldemo_fuelsys_dd_controller'

Example: 'sldemo_fuelsys_dd_controller/airflow_calc'

Data Types: char

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.

Data Types: char

Output Arguments

collapse all

Simulink.ModelAdvisor object for a model or subsystem that you specify by using a system input argument.

Version History

Introduced in R2006a