Clear Filters
Clear Filters

waibar doesn't work with parallel for

3 views (last 30 days)
On Windows 10, R2022b:
The following (simplifyied) code works:
for k=1:2
wb = waitbar(0,'Wait...','WindowStyle','modal');
but changing it to:
parfor k=1:2
wb = waitbar(0,'Wait...','WindowStyle','modal');
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)

Accepted Answer

Florian Bidaud
Florian Bidaud on 7 Mar 2024
  1 Comment
Benny on 7 Mar 2024
I think that Mathworks should state clearly in their help if there is a problem with using waitbar with parallel for

Sign in to comment.

More Answers (0)


Find more on Loops and Conditional Statements in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!