runCheck

Run currently selected checks

Description

The success = runCheck(ma,checkID) method runs selected Model Advisor checks. Invoking this method is equivalent to selecting the Run Selected Checks button on the Model Advisor.

Input Arguments

collapse all

Simulink.ModelAdvisor object for which you want to run Model Advisor.

If you want to run the Model Advisor on a subset of the currently selected Model Advisor checks, specify this optional input parameter.

Example: 'mathworks.design.UnconnectedLinesPorts'

Output Arguments

collapse all

Boolean value that indicates whether the Model Advisor ran on the selected checks. A value of 1 indicates that the Model Advisor successfully ran on the selected checks. A value of 0 indicates that the Model Advisor did not run on the selected checks.

Introduced in R2006a