Is it possible to use Parallel Computation in app designer?

3 ビュー (過去 30 日間)
vishnu
vishnu 2022 年 7 月 22 日
コメント済み: vishnu 2022 年 7 月 22 日
Hello, I have created a App using App Designer. I wanted to implement 'parfor' instead of 'for' in my code. Is it possible?. If yes, Can i know the constraints?

採用された回答

Walter Roberson
Walter Roberson 2022 年 7 月 22 日
Yes. There are no additional constraints for App Designer, just the same constraints as otherwise.
Remember though that "app" is an object. The way that objects are transfered to workers is by the equivalent of save() on the client and load() on the worker. If I recall correctly, "app" has some fields that cannot be saved -- which if I understand correctly means that you effectively cannot use app inside your parfor loop. If you need fields from app save them into local variables and access those variables in the loop.
App Designer has the same restriction that other kinds of graphics do, namely that graphics in the workers cannot affect graphics in the main function. It isn't that you cannot create graphics in the workers: you can, and you can save the graphics as images or export_graphics() or similar, but they will not affect the display on the client.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeProgramming についてさらに検索

製品


リリース

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by