append
Class: mlreportgen.dom.TableRow
Package: mlreportgen.dom
Append content to table row
Examples
Append a Table Entry to a Row
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
rowObj
— Row to append the table entry to
mlreportgen.dom.TableRow
object
Row to append the table entry to, specified as an mlreportgen.dom.TableRow
object.
entryObj
— Table entry to append
mlreportgen.dom.TableEntry
object
Table entry to append, specified as an mlreportgen.dom.TableEntry
object.
Output Arguments
entryOut
— Appended table entry
mlreportgen.dom.TableEntry
object
Appended table entry, represented by an mlreportgen.dom.TableEntry
object.
Version History
Introduced in R2014b
Beispiel öffnen
Sie haben eine geänderte Version dieses Beispiels. Möchten Sie dieses Beispiel mit Ihren Änderungen öffnen?
MATLAB-Befehl
Sie haben auf einen Link geklickt, der diesem MATLAB-Befehl entspricht:
Führen Sie den Befehl durch Eingabe in das MATLAB-Befehlsfenster aus. Webbrowser unterstützen keine MATLAB-Befehle.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)