title: how to read the img format file from the folder using MATLAB
body: <p>I am new to MATLAB. I already read one .img file using <code>fopen</code> command. How to read the .img files continuously from the folder without knowing header and pixel information [i.e rows and columns].</p>
  
  <p>Also I need to know how to find average pixel value from the image part only.</p>