- https://www.mathworks.com/matlabcentral/fileexchange/6922-progressbar
- https://www.mathworks.com/matlabcentral/fileexchange/4863-ascii-progress-bar
- https://www.mathworks.com/matlabcentral/fileexchange/26589-multiwaitbar
- https://www.mathworks.com/matlabcentral/fileexchange/14773-statusbar (fancy: statusbar of the command window!)
Is there any way to display a progress bar in command window while the code is running?
조회 수: 230 (최근 30일)
이전 댓글 표시
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?
댓글 수: 0
채택된 답변
Jan
2022년 3월 17일
편집: Jan
2022년 3월 17일
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
댓글 수: 0
추가 답변 (1개)
Steven Lord
2022년 3월 17일
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.)
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Dialog Boxes에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!