Help CenterHelp Center
Class: mlreportgen.dom.FormalTable Package: mlreportgen.dom
Append row to table footer
rowObjOut = appendFooterRow(tableObj,rowObj)
example
rowObjOut = appendFooterRow(tableObj,rowObj) appends a row of table entries to the footer of a table.
rowObjOut
tableObj
rowObj
expand all
Create, format, and append a formal table.
import mlreportgen.dom.*; myReport = Document('myDoc','html'); table = FormalTable({'row1 - col1' 'row1 - col2 ';... 'row2 - col1' 'row2 - col2'}); table.Style = {Border('double'),ColSep('solid'),RowSep('solid')}; append(myReport,table);
Create a row (and its entries) for the footer. Use bold text for the text in the row.
rowForFooter = TableRow(); rowForFooter.Style = {Bold(true)}; col1Title = TableEntry('Column 1 footer'); col2Title = TableEntry('Column 2 footer'); append(rowForFooter,col1Title); append(rowForFooter,col2Title);
Append the footer row and display the report.
footerRow = appendFooterRow(table,rowForFooter); close(myReport); rptview('myDoc','html');
mlreportgen.dom.FormalTable
Table that contains the footer to append a row to.
mlreportgen.dom.TableRow
Row to append to the table footer, specified as an mlreportgen.dom.TableRow object.
Row appended to the table footer, represented by an mlreportgen.dom.TableRow object.
mlreportgen.dom.Table | mlreportgen.dom.FormalTable
mlreportgen.dom.Table
この例の変更されたバージョンがあります。編集された方の例を開きますか?
次の MATLAB コマンドに対応するリンクがクリックされました。
コマンドを MATLAB コマンド ウィンドウに入力して実行してください。Web ブラウザーは MATLAB コマンドをサポートしていません。
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:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office