setImage
注釈にイメージを挿入
説明
setImage(
は、クリップボードまたはイメージ ファイルから注釈へとイメージを挿入します。annotation
,source
)
例
チャートへのイメージ注釈の追加
チャート ch
に注釈を追加します。フォルダー myfolder/annotation_images
にあるファイル myImageFile.png
を、注釈のイメージとして使用します。
annotation = Stateflow.Annotation(ch); setImage(annotation, ... fullfile("myfolder","annotation_images","myImageFile.png"));
入力引数
annotation
— 注釈
Stateflow.Annotation
オブジェクト
注釈。Stateflow.Annotation
オブジェクトとして指定します。
source
— イメージのソース
string スカラー | 文字配列 | "clipboard"
| ""
イメージのソース。イメージ ファイルの絶対パスと名前を含む string スカラーまたは文字配列として指定します。あるいは、クリップボードからイメージを挿入するには、"clipboard"
を指定します。
イメージ注釈をテキスト注釈に変換するには、""
を指定します。
バージョン履歴
R2014a で導入
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)