Generate baseline Model Advisor check results file or compare current check results to baseline check results
method 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 method
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 method 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 method with the path of the baseline report as the value of the baseline input argument.
ma— Model Advisor object
Simulink.ModelAdvisor object for which you want to verify that a
set of checks ran.
baseline— Path of the baseline check results MAT-file
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.
CheckIDs— Model Advisor Check IDs
Cell array of character vectors specifying the identifiers of Model Advisor checks that you want to verify by using check results.
Booleanvalue indicating whether the method succeeded
Boolean value that indicates whether the method ran successfully.
A value of
1 indicates that the method 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 method 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— Error message
Error message indicating why Simulink did not verify check result.