[37] | 1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" |
---|
| 2 | "http://www.w3.org/TR/REC-html40/loose.dtd"> |
---|
| 3 | <html> |
---|
| 4 | <head> |
---|
| 5 | <title>Description of update_waitbar</title> |
---|
| 6 | <meta name="keywords" content="update_waitbar"> |
---|
| 7 | <meta name="description" content="'update_waitbar': update the waitbar display, used for ACTION functions in the GUI 'series'"> |
---|
| 8 | <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> |
---|
| 9 | <meta name="generator" content="m2html © 2003 Guillaume Flandin"> |
---|
| 10 | <meta name="robots" content="index, follow"> |
---|
| 11 | <link type="text/css" rel="stylesheet" href="../m2html.css"> |
---|
| 12 | </head> |
---|
| 13 | <body> |
---|
| 14 | <a name="_top"></a> |
---|
| 15 | <div><a href="../index.html">Home</a> > <a href="index.html">.</a> > update_waitbar.m</div> |
---|
| 16 | |
---|
| 17 | <!--<table width="100%"><tr><td align="left"><a href="../index.html"><img alt="<" border="0" src="../left.png"> Master index</a></td> |
---|
| 18 | <td align="right"><a href="index.html">Index for . <img alt=">" border="0" src="../right.png"></a></td></tr></table>--> |
---|
| 19 | |
---|
| 20 | <h1>update_waitbar |
---|
| 21 | </h1> |
---|
| 22 | |
---|
| 23 | <h2><a name="_name"></a>PURPOSE <a href="#_top"><img alt="^" border="0" src="../up.png"></a></h2> |
---|
| 24 | <div class="box"><strong>'update_waitbar': update the waitbar display, used for ACTION functions in the GUI 'series'</strong></div> |
---|
| 25 | |
---|
| 26 | <h2><a name="_synopsis"></a>SYNOPSIS <a href="#_top"><img alt="^" border="0" src="../up.png"></a></h2> |
---|
| 27 | <div class="box"><strong>function update_waitbar(hwaitbar,bar_size,advance_ratio) </strong></div> |
---|
| 28 | |
---|
| 29 | <h2><a name="_description"></a>DESCRIPTION <a href="#_top"><img alt="^" border="0" src="../up.png"></a></h2> |
---|
| 30 | <div class="fragment"><pre class="comment">'update_waitbar': update the waitbar display, used for ACTION functions in the GUI 'series' |
---|
| 31 | ------------------------------------------------------------------ |
---|
| 32 | INPUT: |
---|
| 33 | hwaitbar: handles of the waitbar to update |
---|
| 34 | bar_size: vector with 4 elements, representing the abscissa, ordinate, width, height of the waitbar relative to the GUI |
---|
| 35 | advance_ratio: number between 0 and 1 representing the advancement of the calculation (loop index relative to the total length)</pre></div> |
---|
| 36 | |
---|
| 37 | <!-- crossreference --> |
---|
| 38 | <h2><a name="_cross"></a>CROSS-REFERENCE INFORMATION <a href="#_top"><img alt="^" border="0" src="../up.png"></a></h2> |
---|
| 39 | This function calls: |
---|
| 40 | <ul style="list-style-image:url(../matlabicon.gif)"> |
---|
| 41 | </ul> |
---|
| 42 | This function is called by: |
---|
| 43 | <ul style="list-style-image:url(../matlabicon.gif)"> |
---|
| 44 | <li><a href="series.html" class="code" title="function varargout = series(varargin)">series</a> 'series': master function associated to the GUI series.m for analysis field series</li></ul> |
---|
| 45 | <!-- crossreference --> |
---|
| 46 | |
---|
| 47 | |
---|
| 48 | <h2><a name="_source"></a>SOURCE CODE <a href="#_top"><img alt="^" border="0" src="../up.png"></a></h2> |
---|
| 49 | <div class="fragment"><pre>0001 <span class="comment">%'update_waitbar': update the waitbar display, used for ACTION functions in the GUI 'series'</span> |
---|
| 50 | 0002 <span class="comment">%------------------------------------------------------------------</span> |
---|
| 51 | 0003 <span class="comment">%INPUT:</span> |
---|
| 52 | 0004 <span class="comment">% hwaitbar: handles of the waitbar to update</span> |
---|
| 53 | 0005 <span class="comment">% bar_size: vector with 4 elements, representing the abscissa, ordinate, width, height of the waitbar relative to the GUI</span> |
---|
| 54 | 0006 <span class="comment">% advance_ratio: number between 0 and 1 representing the advancement of the calculation (loop index relative to the total length)</span> |
---|
| 55 | 0007 |
---|
| 56 | 0008 <a name="_sub0" href="#_subfunctions" class="code">function update_waitbar(hwaitbar,bar_size,advance_ratio)</a> |
---|
| 57 | 0009 waitbarpos(1)=bar_size(1); |
---|
| 58 | 0010 waitbarpos(3)=bar_size(3); |
---|
| 59 | 0011 waitbarpos(4)=advance_ratio*bar_size(4); |
---|
| 60 | 0012 waitbarpos(2)=bar_size(4)+bar_size(2)-waitbarpos(4); |
---|
| 61 | 0013 set(hwaitbar,<span class="string">'Position'</span>,waitbarpos) |
---|
| 62 | 0014 drawnow</pre></div> |
---|
| 63 | <hr><address>Generated on Fri 13-Nov-2009 11:17:03 by <strong><a href="http://www.artefact.tk/software/matlab/m2html/">m2html</a></strong> © 2003</address> |
---|
| 64 | </body> |
---|
| 65 | </html> |
---|