replace
クラス: mlreportgen.ppt.Table
名前空間: mlreportgen.ppt
テーブルの別のテーブルへの置換
説明
は、テーブルを別のテーブルに置き換えます。tableObj
= replace(table
,replacementTable
)
例
テーブルの別のテーブルへの置換
プレゼンテーションを作成します。
import mlreportgen.ppt.* ppt = Presentation("myTableReplacePresentation.pptx"); open(ppt); slide1 = add(ppt,'Blank');
mlreportgen.ppt.Table
オブジェクトを作成します。
t1 = Table(magic(7)); t1.X = '2in'; t1.Y = '2in'; t1.Width = '6in'; t1.Height = '4in';
slide1
で Table
を検索します。
add(slide1,t1);
別の mlreportgen.ppt.Table
オブジェクトを作成します。
t2 = Table(magic(9)); t2.X = '2in'; t2.Y = '2in'; t2.Width = '7in'; t2.Height = '5in';
t1
を t
2 に置き換えます。
replace(t1,t2);
プレゼンテーションを生成します。myTableReplacePresentation.pptx
を開きます。Windows® プラットフォームでは、このプレゼンテーションを MATLAB® で開くことができます。
close(ppt); rptview(ppt);
入力引数
table
— 別のテーブルに置き換えるテーブル
mlreportgen.ppt.Table
オブジェクト
テーブルを置き換えるテーブル。mlreportgen.ppt.Table
オブジェクトとして指定します。
replacementTable
— 置換項目として使用するテーブル
mlreportgen.ppt.Table
オブジェクト
置換項目として使用するテーブル。mlreportgen.ppt.Table
オブジェクトとして指定します。
出力引数
tableObj
— テーブル
mlreportgen.ppt.Table
オブジェクト
テーブル。mlreportgen.ppt.Table
オブジェクトとして返されます。
バージョン履歴
R2015b で導入
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)