main content

matlab report generator task examples -凯发k8网页登录

report generator sample tasks and associated code

these examples illustrate how to use the dom api and report api to create and format report content.

word

page layout


  • generate a report that has landscape pages.

  • generate a report that has both portrait and landscape pages.

  • use report api objects to customize page dimensions.

  • modify the page dimensions in the word templates for the title page, table of contents, and chapter reporters.

  • define margins and header, footer, and gutter sizes for a docx page.

  • specify word document page borders programmatically by using mlreportgen.dom.pageborder objects.

  • specify page borders for report api reports programmatically by using mlreportgen.dom.pageborder objects.

  • arrange tables next to each other on a page.

  • arrange matlab figures next to each other on a page.

  • arrange images next to each other on a page.

  • slice a wide table to fit on a page.

  • center a figure snapshot on a landscape page for pdf and word reports.

  • use an mlreportgen.dom.scaletofit object to make an image fit on a page.

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

  • change the spacing between paragraphs in a report.

tables


  • 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.

  • use format properties and objects to align table entry content.

  • set table column widths.

  • format numbers in a table using an mlreportgen.dom.numberformat object.

  • create striped table with alternating row colors.

lists


  • create multilevel lists in html, pdf, or word reports. use cell arrays or list and listitem objects.

  • use a custom word template to style a multilevel list.

numbering


  • create numbered chapter and subsection headings.

  • use the dom and report apis to number word or pdf pages.

  • specify page numbering in a report by customizing a word template.

images, figures, and equations


  • insert inline equation in a line of text in a report.

  • make figure that you include in a report invisible in matlab.

styles


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

pdf

page layout


  • generate a report that has landscape pages.

  • generate a report that has both portrait and landscape pages.

  • use report api objects to customize page dimensions.

  • modify the page dimensions in the pdf templates for the title page, table of contents, and chapter reporters.

  • define margins and header, footer, and gutter sizes for a pdf page.

  • specify pdf document page borders programmatically by using mlreportgen.dom.pageborder objects.

  • specify page borders for report api reports programmatically by using mlreportgen.dom.pageborder objects.

  • arrange tables next to each other on a page.

  • arrange matlab figures next to each other on a page.

  • arrange images next to each other on a page.

  • slice a wide table to fit on a page.

  • center a figure snapshot on a landscape page for pdf and word reports.

  • use an mlreportgen.dom.scaletofit object to make an image fit on a page.

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

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

  • change the spacing between paragraphs in a report.

tables


  • 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.

  • use format properties and objects to align table entry content.

  • set table column widths.

  • format numbers in a table using an mlreportgen.dom.numberformat object.

  • create striped table with alternating row colors.

  • create a pdf report from a microsoft® excel® spreadsheet.

lists


  • create multilevel lists in html, pdf, or word reports. use cell arrays or list and listitem objects.

images, figures, and equations


  • add hyperlinks to an image.

  • insert inline equation in a line of text in a report.

  • make figure that you include in a report invisible in matlab.

numbering


  • create numbered chapter and subsection headings.

  • use the dom and report apis to number word or pdf pages.

  • specify page numbering in a report by customizing a pdf template.

styles


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

html

page layout


  • arrange tables next to each other on a page.

  • arrange matlab figures next to each other on a page.

  • arrange images next to each other on a page.

  • change the spacing between paragraphs in a report.

tables


  • 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 widths.

  • format numbers in a table using an mlreportgen.dom.numberformat object.

  • create striped table with alternating row colors.

lists


  • create multilevel lists in html, pdf, or word reports. use cell arrays or list and listitem objects.

images, figures, and equations


  • add hyperlinks to an image.

  • insert inline equation in a line of text in a report.

  • make figure that you include in a report invisible in matlab.

numbering


  • create numbered chapter and subsection headings.

styles


  • simplify formatting of a report by using named sets of formats in a report program.
网站地图