Main Content

verifyCheckResult

Generate baseline Model Advisor check results file or compare current check results to baseline check results

Description

Use the [success, message]= verifyCheckResult(ma,baseline,CheckIDs)function to generate a baseline Model Advisor check results file or compare to current check results to baseline check results. If the Model Advisor is in baseline mode, this function stores the most recent results of running the checks that you specify by the CheckIDs argument in a MAT-file. For the MAT-file, use the location that you specify by using the baseline input argument.

To generate a baseline report, put the Model Advisor in baseline mode. Then invoke this function with the baseline argument set to the location where you want to store the baseline results. To perform a current-to-baseline report comparison, first check that the Model Advisor is not in baseline mode. Then, invoke this function with the path of the baseline report as the value of the baseline input argument.

Input Arguments

collapse all

Simulink.ModelAdvisor object for which you want to verify that a set of checks ran.

To perform a current-to-baseline report comparison, make sure that the Model Advisor is not in baseline mode and specify a path to the baseline report.

Cell array of character vectors specifying the identifiers of Model Advisor checks that you want to verify by using check results.

Output Arguments

collapse all

Boolean value that indicates whether the function ran successfully. A value of 1 indicates that the function verified that the current check results match the baseline results. A value of 0 indicates that the Model Advisor did not verify check results. If the function is unable to store the check results at the specified location, it returns false in the output variable success. The reason for the failure is in the message argument.

Error message indicating why Simulink did not verify check result.

Version History

Introduced in R2006a