title: How to matlab continue processing while waiting for user input
body: <p>Suppose we have the following <code>for</code> loop:</p>
  
  <pre><code>for i=1:100
      % image processing calculation
      % show image to the user and ask for his rating
      rating(i) = input('Enter rating of the shown image\n');
  end
  </code></pre>
  
  <p>Obviously, the <code>input</code> command will wait for the user input and the <code>for</code> loop won't continue until the user has provided his input. The image processing code I'm running in the <code>for</code> loop is time consuming so I'd like to know if there's a way to make MATLAB continue calculations - in the background - for the following loop iteration while waiting for the user's input.</p>