title: Matlab Processing Sequentially Numbered Images
body: <p>I have nearly 1000 images started as 
     img0.png, img1.png, img3.png, ..., img1000.png.
     I am using MatLab and my code is following:</p>
  
  <pre><code>    imageNames = dir(fullfile(workingDir,'*.png')); 
  </code></pre>
  
  <p>So <strong>imageNames</strong> struct contains as following</p>
  
  <p>img0.png</p>
  
  <p>img1.png</p>
  
  <p>img10.png</p>
  
  <p>img100.png
     .......</p>
  
  <p><strong>But I want</strong> </p>
  
  <p>img0.png</p>
  
  <p>img1.png</p>
  
  <p>img2.png
     .......</p>
  
  <p>Is this possible to do programmatically in MatLab?</p>
  
  <p>Regards</p>