waibar doesn't work with parallel for

On Windows 10, R2022b:
The following (simplifyied) code works:
for k=1:2
wb = waitbar(0,'Wait...','WindowStyle','modal');
end
but changing it to:
parfor k=1:2
wb = waitbar(0,'Wait...','WindowStyle','modal');
end
throws:
Error using matlab.internal.lang.capability.Capability.require
Support for Java user interfaces is required, which is not available on this platform.
Error in waitbar (line 46)
Capability.require(Capability.Swing);

 採用された回答

Florian Bidaud
Florian Bidaud 2024 年 3 月 7 日

1 投票

1 件のコメント

Benny
Benny 2024 年 3 月 7 日
I think that Mathworks should state clearly in their help if there is a problem with using waitbar with parallel for

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

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeParallel for-Loops (parfor) についてさらに検索

タグ

質問済み:

2024 年 3 月 7 日

コメント済み:

2024 年 3 月 7 日

Community Treasure Hunt

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

Start Hunting!

Translated by