title: Wildcard filter for reading jpg and png files in matlab
body: <p>how can i modify this row in order to make matlab read png files also? </p>
  
  <p>This is my code</p>
  
  <pre><code>dir(fullfile(directory, '*.jpg'));
  </code></pre>