No BSD License  

Highlights from
FWAITBAR

5.0

5.0 | 1 rating Rate this file 2 Downloads (last 30 days) File Size: 2.16 KB File ID: #13446
image thumbnail

FWAITBAR

by Elmar Tarajan

 

19 Dec 2006 (Updated 19 Dec 2006)

Displays timer controlled wait bar for working with files.

| Watch this File

File Information
Description

Creates and displays a waitbar depending on the file position indicator(FID).
Due to the fact that the waitbar updates automatically via timer function
it is not necessary to update it manually in each cycle of the loop.

H = FWAITBAR(FID) initializes the waitbar due to file identifier
obtained from FOPEN. The length of the bar will compute due to
file position indicator obtained from FTELL.
The handle to the waitbar figure is returned in H.

FWAITBAR(FID,'message') initializes the wait bar with a specified
message.

FWAITBAR is typically used outside a FOR/WHILE loop that performs a
lengthy operation with readout of files.

Example
   fid=fopen('fopen.m');
   fwaitbar(fid);
   while 1
       tline = fgetl(fid);
       if ~ischar(tline), break, end
       disp(tline)
       pause(0.05)
   end
   fclose(fid);

MATLAB release MATLAB 7.3 (R2006b)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (1)
19 Dec 2006 Berthold Kaeferstein

Easy to use and generic solution.

%%%[I LOVE MATLAB]%%%
Me, too!

Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
gui tools Elmar Tarajan 22 Oct 2008 08:53:20
example Elmar Tarajan 22 Oct 2008 08:53:20
fwaitbar waitbar fopen fid fwrite wait bar timer load sscanf tex Elmar Tarajan 22 Oct 2008 08:53:20

Contact us at files@mathworks.com