Rank: 10536 based on 0 downloads (last 30 days) and 0 files submitted
photo

Latif Yalcinoglu

E-mail

Personal Profile:
Professional Interests:

 

Watch this Author's files

 

Comments and Ratings by Latif
Updated File Comments Rating
17 Nov 2008 progressbar Progressbar with an abort button. Author: Ohad Gal

If you use following code, then you can see the estimated process time in bar..( 'mod' is for saving the total process time)..

tic
for i=1:yourprocess
        if mod(i,100)==0
        totaltime = int32(toc*yourprocess/i);
        string = sprintf('Trace # %d/%d, Time = %d sec', i,... not, totaltime);
        waitbar(i/yourprocess,h,['' string ]);
% ...
% your process....
% ...
end

Contact us at files@mathworks.com