title: Reading a raw IMG file in MATLAB
body: <p>I am trying a code to help me read a raw IMG file, but I get an error. 
  My code is the following: </p>
  
  <pre><code>function image = readrawimage('/Users/Adrian/Documents/MATLAB/HiWinGS wind MATLAB 09_30_13/00006010.img')
  fid = fopen('/Users/Adrian/Documents/MATLAB/HiWinGS wind MATLAB 09_30_13/00006010.img');
  image = fread(fid, 2048*2048, 'uint8=&gt;uint8');
  fclose(fid);
  image = reshape(image, 2048, 2048);
  </code></pre>
  
  <p>And I get the following error: </p>
  
  <pre><code>Undefined function 'readrawimage' for input arguments of type 'char'.
  </code></pre>
  
  <p>I tried to change the path of my IMG file, but it's still doesn't work. Does anyone knows a way to fix this error? Thank you. </p>