Ahora está siguiendo esta publicación
- Verá actualizaciones en las notificaciones de contenido en seguimiento.
- Podrá recibir correos electrónicos, en función de las preferencias de comunicación que haya establecido.
This script generates a waitbar or a wait message including (1) the percentage finished; (2) the time used; and (3) the estimated remaining time for parfor or other types of loop. The script uses "parallel.pool.DataQueue" to collect information from workers.
Example.m provides an example. Basically, we need to construct the object right before the loop, send a message to the object within the loop, and destroy the object after the loop.
%Example:
N = 100000;
WaitMessage = parfor_wait(N, 'Waitbar', true);
parfor i = 1: N
WaitMessage.Send;
pause(0.002);
end
WaitMessage.Destroy
Citar como
Yun Pu (2026). Waitbar for Parfor (https://la.mathworks.com/matlabcentral/fileexchange/71083-waitbar-for-parfor), MATLAB Central File Exchange. Recuperado .
Agradecimientos
Inspiración para: Noise evaluation in transmission electron microscopy (TEM)
Información general
- Versión 1.0.0 (2,53 KB)
Compatibilidad con la versión de MATLAB
- Compatible con cualquier versión desde R2017a hasta R2019a
Compatibilidad con las plataformas
- Windows
- macOS
- Linux
| Versión | Publicado | Notas de la versión | Action |
|---|---|---|---|
| 1.0.0 |
