waibar doesn't work with parallel for

조회 수: 8 (최근 30일)
Benny
Benny 2024년 3월 7일
댓글: Benny 2024년 3월 7일
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
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개)

카테고리

Help CenterFile Exchange에서 App Building에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by