appendHeaderRow
クラス: mlreportgen.dom.FormalTable
名前空間: mlreportgen.dom
テーブル ヘッダーへの行の追加
例
テーブル ヘッダーの追加
形式的テーブルを作成します。
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);
ヘッダーの行を作成します。
rowForHeader = TableRow(); col1Title = TableEntry('Column 1 header'); col2Title = TableEntry('Column 2 header'); append(rowForHeader,col1Title); append(rowForHeader,col2Title);
ヘッダー行を追加し、レポートを表示します。
headerRow = appendHeaderRow(table,rowForHeader); close(myReport); rptview('myDoc','html');
入力引数
tableObj
— テーブル
mlreportgen.dom.FormalTable
オブジェクト
行を追加するヘッダーを含むテーブル。
rowObj
— テーブル ヘッダーに追加する行
mlreportgen.dom.TableRow
オブジェクト
テーブル ヘッダーに追加する行。mlreportgen.dom.TableRow
オブジェクトとして指定します。
出力引数
rowObjOut
— テーブル ヘッダーに追加された行
mlreportgen.dom.TableRow
オブジェクト
テーブル ヘッダーに追加された行。mlreportgen.dom.TableRow
オブジェクトで表されます。
バージョン履歴
R2014b で導入
MATLAB コマンド
次の MATLAB コマンドに対応するリンクがクリックされました。
コマンドを MATLAB コマンド ウィンドウに入力して実行してください。Web ブラウザーは MATLAB コマンドをサポートしていません。
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)