title: Matlab - Waitbar with marquee style
body: <p><strong>Problem</strong></p>
  
  <p>I'm looking for a improved waitbar in matlab that supports for marquee style.</p>
  
  <p><strong>Sample syntax I'd like to have:</strong></p>
  
  <pre><code>smartWaitbar(6/12, 'Step 7/12...'); % Ratio € [0.0 1.0] ==&gt; Normal display
  smartWaibar(NaN, 'Connecting to database...'); % ratio = NaN ==&gt; Marquee style 
  </code></pre>
  
  <p><strong>Sample display I'd like to have:</strong></p>
  
  <p><img src="https://i.stack.imgur.com/iwi8d.png" alt="enter image description here"></p>
  
  <p>NB1: I searched <a href="http://www.mathworks.com/matlabcentral/fileexchange/?search_submit=fileexchange&amp;query=waitbar&amp;term=waitbar" rel="nofollow noreferrer">file-exchange</a> but did not found what i was looking for.</p>
  
  <p>NB2: If it does not exist yet, I'll probably create my own waitbar using <a href="http://www.mathworks.com/matlabcentral/answers/616-how-to-create-windows-forms-in-matlab" rel="nofollow noreferrer">winforms</a>.</p>