Run currently selected checks
function runs selected Model Advisor checks. Invoking this function is equivalent to
selecting the Run Checks button on the Model Advisor.
success = runCheck(
If you have a Simulink®
Check™ license, consider using the
ModelAdvisor.run (Simulink Check) function or the
Advisor.Application (Simulink Check)
run (Simulink Check) function instead of the
Advisor.Application class if you have a large model with
subsystems and model references.
Advisor.Application does not run checks on
library models. If you want to run checks on multiple independent models that are not in a
model reference hierarchy or you want to leverage parallel processing, use
ModelAdvisor.run to run Model Advisor checks on your model.
ma — Model Advisor object
Simulink.ModelAdvisor object for which you want to run Model
checkID — Model Advisor check IDs
cell array of character vectors
If you want to run the Model Advisor on a subset of the currently selected Model Advisor checks, specify this optional input parameter.
Boolean value indicating whether the Model Advisor ran on selected checks
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