Will there be a support of the parallel toolbox in Matlab App Designer?

20 ビュー (過去 30 日間)
Jackrecki
Jackrecki 2017 年 11 月 12 日
コメント済み: Friedrich 2019 年 7 月 2 日
Dear all, i want to use parfor loops in Matlab App Designer. Is there a way to make this work? It didn´t work in the Editor itself and also with seperated functions. Otherwise will that be implemented in future Matlab releases?
Thank you!

採用された回答

Stefanie Schwarz
Stefanie Schwarz 2019 年 6 月 26 日
編集済み: Stefanie Schwarz 2019 年 6 月 26 日
Using App Designer, you can basically call into any functionality available with your MATLAB/Simulink installation. If you have Parallel Computing Toolbox installed and licensed for, you will be able include calls to PARPOOL, PARFOR, etc. in your app and run parallel computations.
For deploying your app to a standalone executable using MATLAB Compiler, all command-line functionality from Parallel Computing Toolbox is supported as well:
  1 件のコメント
Friedrich
Friedrich 2019 年 7 月 2 日
Note the limitation of accessing the app object inside the parfor loop or any other functions called though Parallel Computing Toolbox.
If you need to access properties of your app pass them down as values directly, e.g. instead of
b = [0,0];
parfor i=1:2
b(i) = app.myprop*2
end
use
tmp = app.myprop;
b = [0,0];
parfor i=1:2
b(i) = tmp*2
end

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeParallel Computing Fundamentals についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by