This is an ASCII progress bar. It also displays the remaining and elapsed time. Due to the object-oriented implementation it is very easy to use.
Wolfgang Putschögl (2021). Another ASCII Progress Bar (https://www.mathworks.com/matlabcentral/fileexchange/11796-another-ascii-progress-bar), MATLAB Central File Exchange. Retrieved .
I use 'dispstat' function just for this purpose. It can update the previous output which is a missing function of default 'disp'. Very simple to use. It can be downloaded from here:
dispstat('','init'); % One time only initialization
dispstat(sprintf('Begining the process...'),'keepthis','timestamp');
for i = 97:100
%doing some heavy stuff here
11:25:37 Begining the process...
11:25:37 Progress 100%
All the best,
Inspired by: ASCII Progress Bar
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!