notify
クラス: handle
イベントの発生をリスナーに通知
構文
notify(H,EventName)
notify(H,EventName,data)
入力引数
H
— イベント ソース
ハンドル配列
イベント ソース。ハンドル配列として指定します。H
内のオブジェクトはすべて、指定された名前をもつイベントを定義しなければなりません。
EventName
— イベント名
文字ベクトル | string スカラー
イベント名。大文字と小文字を区別する、H
のクラスで定義されたテキストを引用符付きで指定します。
data
— ユーザー定義イベント データ
event.EventData
のサブクラス
ユーザー定義イベント データ。event.EventData
クラスのサブクラスであるオブジェクトとして指定します。イベント データの定義方法の詳細は、イベント特有のデータの定義を参照してください。
メモ
リスナーのコールバックは同じイベント データ オブジェクトを以降の notify
の呼び出しで再利用することはできません。notify
に渡す新しいイベント データ オブジェクトを必ず作成してください。
拡張機能
スレッドベースの環境
MATLAB® の backgroundPool
を使用してバックグラウンドでコードを実行するか、Parallel Computing Toolbox™ の ThreadPool
を使用してコードを高速化します。
バージョン履歴
R2008a で導入
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)