Rank: 3103 based on 12 downloads (last 30 days) and 1 file submitted
photo

Chad English

E-mail
Company/University
Neptec Design Group Ltd

Personal Profile:
Professional Interests:

 

Watch this Author's files

 

Files Posted by Chad
Updated   File Tags Downloads
(last 30 days)
Comments Rating
12 Mar 2002 Screenshot timebar Similar to waitbar, but with estimated time remaining and progress percentage. Author: Chad English time, estimate, gui tools, example, progress, waitbar 12 13
  • 4.57143
4.6 | 14 ratings
Comments and Ratings on Chad's Files View all
Updated File Comment by Comments Rating
24 Oct 2011 timebar Similar to waitbar, but with estimated time remaining and progress percentage. Author: Chad English Mingzhi
16 Jun 2011 timebar Similar to waitbar, but with estimated time remaining and progress percentage. Author: Chad English Michael St.

Good Work.
To speed up code by factor ~50:

comment line 137: pause(10e-100)
go after line 139: h=message;
insert: figure(h);

14 Mar 2011 timebar Similar to waitbar, but with estimated time remaining and progress percentage. Author: Chad English Wei

Nice. It is exactly the function that I am looking for. Thanks.

02 Jan 2010 timebar Similar to waitbar, but with estimated time remaining and progress percentage. Author: Chad English D'Errico, John

I've tried it a few times. Nice help. I like the time remaining counter. It works nicely, but with a flaw. You don't realize how much time is being used by the timebar updates. Do a simple comparison. Here I'll write a loop that does nothing but sum the integers from 1 to 1000. It should run VERY quickly.

tic
n = 1000;
s = 0;
for i = 1:n,
   s = s + i;
end
toc

Elapsed time is 0.003069 seconds.

Now put in a timebar.

tic
h = timebar('fgfg','fhhth');
n = 1000;
for i = 1:n,
   timebar(h,i/n,.1)
   s = s + i;
end
close(h)
toc

Elapsed time is 1.344795 seconds.

See that with a timebar generated, it took a loop that should terminate in virtually NO time at all, and wasted 99.8% of the time just to do a timebar.

So be careful if you have a really big loop, with hugely many iterations. You might be surprised at how much more quickly it will run without any timebar at all. The place to use this code is when you have a loop where each pass through the loop is intensive, but with perhaps at most a few hundred iterations of the loop. Otherwise you will be disappointed.

13 May 2008 timebar Similar to waitbar, but with estimated time remaining and progress percentage. Author: Chad English Hu, Christal

Hi, may i know how to integrate this bar into GUI which does audio file playing? I'm thinking of knowing how much time elapsed n progress in the audio file, similiar to window media player. Thank you!

Top Tags Applied by Chad
estimate, example, gui tools, progress, time
Files Tagged by Chad
Updated   File Tags Downloads
(last 30 days)
Comments Rating
12 Mar 2002 Screenshot timebar Similar to waitbar, but with estimated time remaining and progress percentage. Author: Chad English time, estimate, gui tools, example, progress, waitbar 12 13
  • 4.57143
4.6 | 14 ratings

Contact us at files@mathworks.com