Borrar filtros
Borrar filtros

Is there any way to display a progress bar in command window while the code is running?

205 visualizaciones (últimos 30 días)
I have a for loop that runs 60 time and inside that there is another for loop which runs 12 times containing another nested for loop that runs 260000 times which is the buffer size.
Matlab is taking forever to complete that calculation so is there any way that can track the progress while the code is running so that I can know when will the code end?

Respuesta aceptada

Jan
Jan el 17 de Mzo. de 2022
Editada: Jan el 17 de Mzo. de 2022
Yes. You find several dozens of progressbars and waitbars for figures, dialogs, the command window and the statusbar in the FileExchange. Simply search for "progressbar" and "waitbar" here: https://www.mathworks.com/matlabcentral/fileexchange

Más respuestas (1)

Steven Lord
Steven Lord el 17 de Mzo. de 2022
You could try pausing the running file to examine the values of the loop counters to see if you're almost done, barely started, or somewhere in the middle.
To add to what Jan said, there are progress bar functions included in MATLAB. See the documentation page for the waitbar function (or uiprogressdlg if you're using App Designer.)

Categorías

Más información sobre Dialog Boxes en Help Center y File Exchange.

Productos


Versión

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by