matlab-generate-report

Generate PDF, Word, and HTML reports from MATLAB data and Simulink models.

995|122|Updated Apr 3, 2026
One-click install
npx skills add https://github.com/matlab/matlab-agentic-toolkit --skill matlab-generate-report
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: matlab-generate-report
Source: https://github.com/matlab/matlab-agentic-toolkit/tree/main/skills-catalog/reporting-and-database-access/matlab-generate-report
Command: npx skills add https://github.com/matlab/matlab-agentic-toolkit --skill matlab-generate-report

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Creating professional, structured reports from MATLAB analysis results and Simulink models requires deep knowledge of the Report Generator APIs, template systems, and output-format quirks. This Skill gives an AI agent the workflows, API selection rules, and common-mistake corrections needed to produce correct reports without trial and error.

Core Features & Use Cases

  • Standard Report Generation: Build PDF, Word, or HTML reports with title pages, tables of contents, auto-numbered figures and tables using the Report API (mlreportgen.report) combined with the DOM API (mlreportgen.dom).
  • Simulink Model Documentation: Document models with block diagrams, system I/O tables, execution order, and lookup tables using slreportgen reporters and finders.
  • Custom Reporters and Templates: Scaffold custom reporter classes with customizeReporter, edit template holes, page headers/footers, borders, and branded styles across all output formats.
  • Use Case: An engineer needs a branded PDF report documenting a Simulink model with per-chapter company logos in page headers and auto-numbered figures. The Skill guides scaffolding custom Chapter and TitlePage reporters, editing templates via the DOM Template API, and verifying the output.

Quick Start

Ask your AI agent to generate a PDF report from your MATLAB results with a title page, table of contents, and auto-numbered figures using the matlab-generate-report skill.

Frequently Asked Questions about matlab-generate-report

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate a PDF report from MATLAB data?

Use mlreportgen.report.Report with the "pdf" type, append TitlePage, TableOfContents, and Chapter objects containing content, then call close(rpt) to generate the file. Use BaseTable with FormalTable for auto-numbered tables and Figure reporters for auto-numbered plots.

How do I create a report documenting a Simulink model?

Use slreportgen.report.Report instead of mlreportgen.report.Report, since it supports model compilation required by SystemIO and ExecutionOrder reporters. Add Diagram reporters for the root system and iterate SystemDiagramFinder results for subsystems.

What is the difference between the Report API and DOM API in MATLAB Report Generator?

The Report API (mlreportgen.report) provides the Report container and reporters like Figure, BaseTable, and Chapter that handle auto-numbering and document structure. The DOM API (mlreportgen.dom) handles styled paragraphs, custom tables, and HTML inclusion, and both are used together in one report.

Can I customize report templates with company branding in MATLAB?

Yes, run customizeReporter to scaffold a custom reporter class with editable PDF, Word, and HTML templates, then modify styles, page headers, footers, and borders using the DOM Template API. Never unzip template files to edit raw XML directly.

Why do numbers in my MATLAB report table show full floating-point precision?

Raw numeric values in FormalTable cells render with full precision. Wrap values in mlreportgen.dom.Number with a NumberFormat style such as "%.0f" for integers, and note that %d and currency symbols in format strings are not supported.

When should I not use MATLAB Report Generator for output?

For simple data export use writetable or writematrix, for live script output use the Live Editor export, and for interactive report building use the Report Explorer GUI. Report Generator is intended for programmatic, structured document generation.