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 Exchange에서 Parallel 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