Main Content

このページの翻訳は最新ではありません。ここをクリックして、英語の最新版を参照してください。

MATLAB Report Generator のタスクの例

Report Generator のサンプル タスクと関連コード

これらの例は、DOM API とレポート API を使用してレポートのコンテンツを作成および書式設定する方法を示します。

Word

ページ レイアウト

Create a Report With Landscape Pages

Generate a report that has landscape pages.

Create a Report With Portrait and Landscape Pages

Generate a report that has both portrait and landscape pages.

Customize the Page Size and Margins of a Report Programmatically

Use Report API objects to customize page dimensions.

Customize the Page Size and Margins of a Word Report Using Templates

Modify the page dimensions in the Word templates for the title page, table of contents, and chapter reporters.

Set Page Margins in a Word Report

Define margins and header, footer, and gutter sizes for a DOCX page.

Side-By-Side Tables

Arrange tables next to each other on a page.

Side-By-Side Figures

Arrange MATLAB figures next to each other on a page.

Side-By-Side Images

Arrange images next to each other on a page.

Fit Wide Tables in a Page

Slice a wide table to fit on a page.

Center Figure Snapshot on a Page

Center a figure snapshot on a landscape page for PDF and Word reports.

Scale Image To Fit Page

Use an mlreportgen.dom.ScaleToFit object to make an image fit on a page.

Center Image on a Page

Center an image using an invisible 1-by-1 table that has the same size as the page body.

Specify Space Between Paragraphs

Change the spacing between paragraphs in a report.

テーブル

Create a Table from a Cell Array

Simplify table creation by modeling the table as a cell array.

Span a Table Entry Across Rows and Columns

Set table entry to span across rows or columns.

テーブル エントリ コンテンツの水平方向の配置

書式プロパティと書式オブジェクトを使用して、テーブル エントリのコンテンツを配置する。

Set Table Column Width

Set table column widths.

Format Numbers in a Table

Format numbers in a table using an mlreportgen.dom.NumberFormat object.

Create a Zebra-Striped Table

Create striped table with alternating row colors.

リスト

Multilevel List

Create multilevel lists in HTML, PDF, or Word reports. Use cell arrays or List and ListItem objects.

Custom Styled Word List

Use a custom Word template to style a multilevel list.

番号付け

Number Section Headings, Table Titles, and Figure Captions Programmatically

Create numbered chapter and subsection headings.

Programmatically Number Pages

Use the DOM and Report APIs to number Word or PDF pages.

Number Pages in a Word Template

Specify page numbering in a report by customizing a Word template.

イメージ、Figure、方程式

Create an Inline Equation in a Report

Insert inline equation in a line of text in a report.

Prevent MATLAB Figure Display During Report Generation

Make figure that you include in a report invisible in MATLAB.

スタイル

Define Styles Programmatically

Simplify formatting of a report by using named sets of formats in a report program.

PDF

ページ レイアウト

Create a Report With Landscape Pages

Generate a report that has landscape pages.

Create a Report With Portrait and Landscape Pages

Generate a report that has both portrait and landscape pages.

Customize the Page Size and Margins of a Report Programmatically

Use Report API objects to customize page dimensions.

Customize the Page Size and Margins of a PDF Report Using Templates

Modify the page dimensions in the PDF templates for the title page, table of contents, and chapter reporters.

Set Page Margins in a PDF Report

Define margins and header, footer, and gutter sizes for a PDF page.

Side-By-Side Tables

Arrange tables next to each other on a page.

Side-By-Side Figures

Arrange MATLAB figures next to each other on a page.

Side-By-Side Images

Arrange images next to each other on a page.

Fit Wide Tables in a Page

Slice a wide table to fit on a page.

Center Figure Snapshot on a Page

Center a figure snapshot on a landscape page for PDF and Word reports.

Scale Image To Fit Page

Use an mlreportgen.dom.ScaleToFit object to make an image fit on a page.

Center Image on a Page

Center an image using an invisible 1-by-1 table that has the same size as the page body.

Center Formal Image in a PDF Report

Center a formal image using an invisible 1-by-1 table that has the same size as the page body.

Specify Space Between Paragraphs

Change the spacing between paragraphs in a report.

テーブル

Create a Table from a Cell Array

Simplify table creation by modeling the table as a cell array.

Span a Table Entry Across Rows and Columns

Set table entry to span across rows or columns.

テーブル エントリ コンテンツの水平方向の配置

書式プロパティと書式オブジェクトを使用して、テーブル エントリのコンテンツを配置する。

Set Table Column Width

Set table column widths.

Format Numbers in a Table

Format numbers in a table using an mlreportgen.dom.NumberFormat object.

Create a Zebra-Striped Table

Create striped table with alternating row colors.

Excel to PDF

Create a PDF report from a Microsoft® Excel® spreadsheet.

リスト

Multilevel List

Create multilevel lists in HTML, PDF, or Word reports. Use cell arrays or List and ListItem objects.

イメージ、Figure、方程式

Hyperlink Image

Add hyperlinks to an image.

Create an Inline Equation in a Report

Insert inline equation in a line of text in a report.

Prevent MATLAB Figure Display During Report Generation

Make figure that you include in a report invisible in MATLAB.

番号付け

Number Section Headings, Table Titles, and Figure Captions Programmatically

Create numbered chapter and subsection headings.

Programmatically Number Pages

Use the DOM and Report APIs to number Word or PDF pages.

Number Pages in a PDF Template

Specify page numbering in a report by customizing a PDF template.

スタイル

Define Styles Programmatically

Simplify formatting of a report by using named sets of formats in a report program.

HTML

ページ レイアウト

Side-By-Side Tables

Arrange tables next to each other on a page.

Side-By-Side Figures

Arrange MATLAB figures next to each other on a page.

Side-By-Side Images

Arrange images next to each other on a page.

Specify Space Between Paragraphs

Change the spacing between paragraphs in a report.

テーブル

Create a Table from a Cell Array

Simplify table creation by modeling the table as a cell array.

Span a Table Entry Across Rows and Columns

Set table entry to span across rows or columns.

Set Table Column Width

Set table column widths.

Format Numbers in a Table

Format numbers in a table using an mlreportgen.dom.NumberFormat object.

Create a Zebra-Striped Table

Create striped table with alternating row colors.

リスト

Multilevel List

Create multilevel lists in HTML, PDF, or Word reports. Use cell arrays or List and ListItem objects.

イメージ、Figure、方程式

Hyperlink Image

Add hyperlinks to an image.

Create an Inline Equation in a Report

Insert inline equation in a line of text in a report.

Prevent MATLAB Figure Display During Report Generation

Make figure that you include in a report invisible in MATLAB.

番号付け

Number Section Headings, Table Titles, and Figure Captions Programmatically

Create numbered chapter and subsection headings.

スタイル

Define Styles Programmatically

Simplify formatting of a report by using named sets of formats in a report program.