Main Content

Generate a Report

Run a Report

You can generate a MATLAB® Report Generator™ report either programmatically by using the DOM and Report APIs or interactively by using the Report Explorer.

  • To generate the report programmatically, enter the report command at the MATLAB command line. For example, to print the system1_description report in PDF format, enter:

    report system1_description -fpdf 
  • To generate the report interactively, open the Report Explorer Outline pane, select a report to generate, and choose one of these actions:

    • In the Report Explorer toolbar, click the Report button .

    • Press CTRL+R.

    • Select File > Report.

Report Output Options

Before you generate a report, you can set options to control aspects of report generation processing such as:

  • Output file format (HTML, single-file HTML, multi-page HTML (since R2024a), Microsoft® Word, or PDF)

  • Style sheet or templates for the selected output file format, to control the layout of the report

  • Output file location

  • Whether to view the report after it is generated

For details, see: