FT_PROGRESS

Note that this reference documentation is identical to the help that is displayed in Matlab when you type “help ft_progress”.

  FT_PROGRESS shows a graphical or non-graphical progress indication similar
  to the standard Matlab WAITBAR function, but with the extra option of
  printing it in the command window as a plain text string or as a rotating
  dial. Alternatively, you can also specify it not to give feedback on the
  progress.
 
  Prior to the for-loop, you should call either
    ft_progress('init', 'none',    'Please wait...')
    ft_progress('init', 'gui',     'Please wait...')
    ft_progress('init', 'etf',     'Please wait...')      % estimated time to finish
    ft_progress('init', 'dial',    'Please wait...')      % rotating dial
    ft_progress('init', 'textbar', 'Please wait...')      % ascii progress bar
    ft_progress('init', 'text',    'Please wait...')
 
  In each iteration of the for-loop, you should call either
    ft_progress(x)                                       % only show percentage
    ft_progress(x, 'Processing event %d from %d', i, N)  % show string, x=i/N
 
  After finishing the for-loop, you should call
    ft_progress('close')
 
  Here is an example for the use of a progress indicator
     ft_progress('init', 'etf',     'Please wait...');
     for i=1:42
       ft_progress(i/42, 'Processing event %d from %d', i, 42);
       pause(0.1);
     end
     ft_progress('close')

reference/ft_progress.txt · Last modified: 2012/05/23 23:02 (external edit)

You are here: startreferenceft_progress
This DokuWiki features an Anymorphic Webdesign theme, customised by Eelke Spaak and Stephen Whitmarsh.
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0