You can build report programs to produce highly customized reports for your models and simulation results. With this programmatic approach, you use the Report API and the Document Object Model (DOM) API to create MATLAB code that formats the results of running your model and adds those results to a report document.
The Report API includes a set of objects to create pre-formatted modules including a title page, table of contents, and chapters. You then use the DOM API to customize, create, and assemble the report content.
You can use PDF, Microsoft Word, and HTML templates to define the format and layout of reports that Simulink Report Generator™ produces. The templates specify regions of fixed text and leave blank regions (also called holes) for generated content. Using this forms-based reporting approach, Simulink Report Generator can fill in the blanks with content generated from MATLAB and Simulink.
By creating custom templates, you can tailor the report to meet specific formatting requirements, such as adding logos and footnotes, changing page orientation, or defining specific font types and sizes for table headings. Overall, you have a high degree of control over the layout and formatting of the report, and you can specify exactly where you intend your simulation data, figures, MATLAB code, or other results to appear in the report.
Simulink Report Generator provides a predefined, standard report generator for capturing detailed information about a system design and its associated requirements. You can use this as a starting point for creating your own custom report generator. The output format can be PDF, Microsoft Word, or HTML. Simulink Report Generator lets you automate the process of generating model artifacts and documenting aspects of the Simulink models that are relevant to your application.
With the System Design Description (SDD) report generator, you can:
Using the SDD API, you can automate the generation of SDD reports from the MATLAB command line.
Simulink Report Generator lets you create web views of your Simulink models that look the same in a web browser as models viewed in the Simulink editor. A web view is an interactive rendition of a model that you can view in a web browser and share with colleagues who do not have Simulink installed—royalty free. You can use the model hierarchy to quickly navigate to a specific subsystem and view properties of blocks, signals, and scopes. You can zoom in and out, pan, and fit to view using the same keyboard shortcuts you use in Simulink. You can also search by name and highlight Simulink elements such as parameters, signals, and blocks. By saving web views of a model over time, you can create snapshots of the development process and review each stage.
You can also capture and display requirements and model coverage information in a web view. These web views use the requirements traceability and coverage information provided by Simulink Requirements™ and Simulink Coverage™. For example, if you export a web view of a model that has requirements associated with a set of blocks, you can view those requirements in an informer panel in the HTML browser. Additionally, you can view the code generated from a model, along with its web view, within the MATLAB web browser. This report is accessible from within MATLAB when you have an Embedded Coder® license.