Main Content

verifyHTML

Generate baseline Model Advisor report or compare current report to baseline report

Description

Use the [success message]= verifyHTML(ma,baseline) function to generate a Model Advisor report or to compare a current report to a baseline report.

This function enables you to compare a Model Advisor report with a baseline report to determine if they differ. You can use this function to generate the baseline report and perform current-to-baseline report comparisons. To generate a baseline report, use the setBaselineMode function to put the Model Advisor in baseline mode. Invoke this function with the baseline argument set to the location where you want to store the baseline report. To perform a current-to-baseline report comparison, first make sure 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 generate a baseline report or compare current report to baseline report

Path to baseline Model Advisor report

Output Arguments

collapse all

Boolean value that indicates whether the function is successful. If the Model Advisor is in baseline mode, this function stores the most recently generated Model Advisor report at the location specified by the baseline input argument. If the function is unable to store a copy of the report at the specified location, it returns false in the output variable success. The reason for the failure is in the output variable message. If the Model Advisor is not in baseline mode, this function compares the report most recently generated by the Model Advisor with the report specified by baseline. If the current report has the same content as the baseline report, this function returns true as the value of the success output variable.

Message indicating whether the Model Advisor is able to successfully store a report.

Version History

Introduced in R2006a