Borrar filtros
Borrar filtros

waibar doesn't work with parallel for

3 visualizaciones (últimos 30 días)
Benny
Benny el 7 de Mzo. de 2024
Comentada: Benny el 7 de Mzo. de 2024
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);

Respuesta aceptada

Florian Bidaud
Florian Bidaud el 7 de Mzo. de 2024
  1 comentario
Benny
Benny el 7 de Mzo. de 2024
I think that Mathworks should state clearly in their help if there is a problem with using waitbar with parallel for

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Loops and Conditional Statements en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by