title: Automatic saving a figure as an image file in Matlab
body: <p>I'm creating 49 figures in Matlab, they are all created automatically one after the other. I want them to also automatically be saved as <code>.tif</code> or <code>.jpg</code> images with names corresponding to their figure number.
  Can I do it? And if so,how?</p>
  
  <p>the code for the creation of the figures is:</p>
  
  <pre><code>for num_picture=0:48
    ...
    figure (num_picture+1)
    imshow (screen_im)
  end
  </code></pre>
  
  <p>The <code>...</code> part is where all the calculations of <code>screen_im</code> are.</p>
  
  <p>I want those images in order to create a movie from them, If there is a way where I can create the movie automatically form Matlab, it would be good also, actually it will be better.</p>