User`s guide

12 Classes – Alphabetical List
12-270
mlreportgen.dom.Table class
Package: mlreportgen.dom
Create table
Description
Use an mlreportgen.dom.Table object to define a table. Append rows and table
entries to add content to the table. You can define column properties.
Construction
tableObj = Table(ncols) creates an empty table having the specified number of
columns. Use this constructor as the starting point for creating a table from scratch.
tableObj = Table(array) returns a table whose content is specified by a two-
dimensional numeric array or a two-dimensional cell array of MATLAB data types and
DOM objects. The constructor converts basic MATLAB types to corresponding DOM
types, e.g., strings to Text objects.
tableObj = Table(array,'StyleName') creates a table having the specified style.
The style specified by StyleName must be defined in the template used to create the
document to which this table is appended.
Input Arguments
ncols — Number of columns in the table
double, specifying the number of columns in the table
Data Types: double
body — Array of values to include in a table
two-dimensional numeric array | two-dimensional cell array of MATLAB or DOM objects
The valid DOM objects are: