By default, when the Model Advisor runs checks, it generates
an HTML report of check results in the
On Windows® platforms, you can generate Model Advisor reports
in Adobe® PDF and Microsoft® Word .docx formats.
The beginning of the PDF and Microsoft Word versions of the Model Advisor reports contain the:
Treat as Referenced Model
To generate a Model Advisor report in Adobe PDF or Microsoft Word:
In the Model Advisor window, navigate to the folder that contains the checks that you ran.
Select the folder. The right pane of the Model Advisor window displays information about that folder. The pane includes a Report box.
In the Report box, click Generate Report.
In the Generate Model Advisor Report dialog box, enter the path to the folder where you want to generate the report. Provide a file name.
In the Generate Model Advisor Report dialog box File
format field, select
Click OK. The Model Advisor generates the report in PDF or Microsoft Word format to the location that you specified.
If you have a MATLAB® Report Generator™ license, you can modify the default template that the Model Advisor uses to generate the report in PDF or Microsoft Word.
The default template contains holes that the Model Advisor uses to populate the generated report with information about the analysis. If you want your Model Advisor report to contain the analysis information, do not delete the holes. When the Model Advisor uses the template to generate the report, analysis information overrides the text that you enter in the template hole field.
|Template Hole||In generated report, displays|
|Whether or not model is treated as a referenced model|
|Model Advisor analysis time stamp|
|Number of checks that pass|
|Number of checks that fail|
|Number of checks that cause a warning|
|Number of checks that did not run|
|Total number of checks|
|Results for each check|
This example shows how to add a header to a PDF version of a Model Advisor report.
Using Microsoft Word, open the default template
Rename and save the template
a writable location. For example, save template
In the template
add a header. For example, in the template header, add the text
My Custom Header. Save the template as a Microsoft Word .dotx file.
In the Model Advisor window Report pane, click Generate Report.
In the Generate Model Advisor Report dialog box:
Enter the path to the folder where you want to generate the report and provide a file name.
Set File format to
Select View report after generation.
Set Report template to
Click OK. The Model Advisor
generates the report in PDF format with a custom header. Because the
mytemplate.dotx contains holes that Model
Advisor uses to populate the generated report, the report contains
information about the Model Advisor analysis. For example, the report
contains the model name, model version, and number of checks that