title: Clear previously printed message with fprintf
body: <p>While executing a script, I have used</p>
  
  <pre><code>msg='Please wait...';
  a=fprintf('%6s\n',msg);
  fprintf('\n');
  </code></pre>
  
  <p>before the results get displayed. However after the results disclosure on the screen "Please wait..." is still appearing although I used</p>
  
  <pre><code>clear a
  </code></pre>
  
  <p>Thus, is there a way of turning off in the code</p>
  
  <pre><code>fprintf()
  </code></pre>