このページの翻訳は最新ではありません。ここをクリックして、英語の最新版を参照してください。
バックグラウンド処理
コードをバックグラウンドで実行して他のコードを同時に実行
MATLAB® でコードを実行するときは、そのコードが完了するまで待たないと他のコードを実行できません。バックグラウンド プールを使用すると、コードをバックグラウンドで実行して他のコードを同時に実行できます。たとえば、バックグラウンドでの計算の実行中も応答を続けるアプリを作成できます。
バックグラウンドで関数を実行するには、parfeval
をバックグラウンド プールで使用します。parfeval
は、バックグラウンドで実行中の関数を表す Future
オブジェクトをすぐに返します。Future
からの結果を取得するには、fetchOutputs
を呼び出します。
関数
トピック
バックグラウンド処理入門
- Asynchronous Functions
Learn about how to run code in the background in MATLAB. - Run Functions in Background
Useparfeval
andbackgroundPool
to run functions in the background. - Run MATLAB Functions in Thread-Based Environment
Check support for MATLAB functions that you want to run in the background.
適用
- Update Wait Bar While Functions Run in the Background
UseafterEach
to update a wait bar while you run functions in the background. - Create Responsive Apps by Running Calculations in the Background
Improve the responsiveness of apps you create with MATLAB App Designer by using the background pool.