Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

mlreportgen.dom.TableRow.append

Package: mlreportgen.dom

Append content to table row

Syntax

entryOut = append(rowObj,entryObj)

Description

example

entryOut = append(rowObj,entryObj) appends an entry to a table row.

Examples

collapse all

Create a two-column table.

import mlreportgen.dom.*;
myReport = Document('myDoc','html');
table = Table(2);
table.Style = {Border('solid'),RowSep('solid'),ColSep('solid')};
table.TableEntriesStyle = {Width('2in'),HAlign('center')};

Create three table rows with entries. Append each entry to a row using append(row,te).

for i=1:3
    row = TableRow();
    te = TableEntry();
    append(te,Text([num2str(i) ' - 1']));
    append(row,te);
    te = TableEntry();
    append(te,Text([num2str(i) ' - 2']));
    append(row,te);
    append(table,row);
end

Append the table and display the report.

append(myReport,table);

close(myReport);
rptview(myReport.OutputPath);

Input Arguments

collapse all

Row to append the table entry to, specified as an mlreportgen.dom.TableRow object.

Table entry to append, specified as an mlreportgen.dom.TableEntry object.

Output Arguments

collapse all

Appended table entry, represented by an mlreportgen.dom.TableEntry object.

Introduced in R2014b

Was this topic helpful?