Rank: 721 based on 197 downloads (last 30 days) and 15 files submitted
photo

Roy Schestowitz

E-mail
Company/University
Manchester University

Personal Profile:

http://schestowitz.com

Professional Interests:

 

Watch this Author's files

 

Files Posted by Roy View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
05 Oct 2004 Screenshot Elliptic Bumps Generate and display sets of elliptic bumps Author: Roy Schestowitz specialized, plotting, generate display bump... 10 2
05 Oct 2004 Screenshot Custom Bumps Generate and display sets of flexible bumps Author: Roy Schestowitz specialized, plotting, generate, display, bump, data 10 0
27 Jul 2004 Screenshot Fancy Plot A more graphical mode for 'plot'. Author: Roy Schestowitz fancy, plot, data, vector, display 10 2
  • 1.0
1.0 | 1 rating
21 Jul 2004 Settings File Get settings from file. Author: Roy Schestowitz settings, options, external, file, documentation, nice 7 0
12 Jul 2004 Screenshot Using MATLAB to Generate HTML MATLAB Experiments saved as HTML. Author: Roy Schestowitz whitepaper, article, paper, matlab, html, htm 29 3
  • 3.33333
3.3 | 3 ratings
Comments and Ratings on Roy's Files View all
Updated File Comment by Comments Rating
12 Dec 2013 ASCII Progress Bar An ASCII progress bar with timers. Author: Roy Schestowitz tasdemir, kasim

Hi,

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:

http://www.mathworks.com/matlabcentral/fileexchange/44673

***Sample usage:
dispstat('','init'); % One time only initialization
dispstat(sprintf('Begining the process...'),'keepthis','timestamp');
for i = 97:100
dispstat(sprintf('Progress %d%%',i),'timestamp');
%doing some heavy stuff here
end
dispstat('Finished.','keepprev');

***Output:
11:25:37 Begining the process...
11:25:37 Progress 100%
Finished.

All the best

12 Apr 2013 Vectors Surface An alternative comparative representation of vectors. Author: Roy Schestowitz xin

04 Apr 2012 ASCII Progress Bar An ASCII progress bar with timers. Author: Roy Schestowitz claverie, martin

code improvement

max=100;
% (1) Set this to the total number of iterations

progress_bar_position = 0;

time_for_this_iteration = 0.01;
% (2) Provide initial time estimate for one iteration

for i=1:max,
tic;


% (3) Place all computations here

pause(0.02)
progress_bar_position = progress_bar_position + 1 / max;
clc;
disp(['|=================================================|']);
progress_string =['|' repmat('#',[1 round(49*(progress_bar_position))])...
repmat(' ',[1 round(49*(1-progress_bar_position))]) '|'] ;

disp(progress_string);
disp(['|================ ',num2str(floor(progress_bar_position * 100),'%0.3u'),...
'% completed =================|']);
% display progress per cent
steps_remaining = max - i;
minutes = floor(time_for_this_iteration * steps_remaining / 60);
seconds = rem(floor(time_for_this_iteration * steps_remaining), 60);
disp(' ');

disp([' Estimated remaining time: ',...
num2str(minutes,'%0.2u'), ':', num2str(seconds,'%0.2u')]);

time_for_this_iteration = toc;
end

04 Apr 2012 ASCII Progress Bar An ASCII progress bar with timers. Author: Roy Schestowitz claverie, martin

04 Apr 2012 ASCII Progress Bar An ASCII progress bar with timers. Author: Roy Schestowitz claverie, martin

Contact us