title: How can I flush the output of disp in Matlab or Octave?
body: <p>I have a program in Octave that has a loop - running a function with various parameters, not something that I can turn into matrices.  At the beginning of each iteration I print the current parameters using <code>disp</code>.  </p>
  
  <p>The first times I ran it I had a <a href="http://politicalhumor.about.com/library/jokes/bljokebushbrazilian.htm" rel="noreferrer" title="Three Brazilian Soldiers">brazillion</a> warnings, and then I also got these prints.  Now that I cleaned them up, I no longer see them.  My guess is that they're stuck in a buffer, and I'll see them when the program ends or the buffer fills. </p>
  
  <p>Is there any way to force a flush of the print buffer so that I can see my prints?</p>