title: MATLAB reading a mixed data type binary file
body: <p>I am having trouble reading a very large binary file (1,000,000 bytes +)</p>
  
  <p>If I <code>fread</code> the file in a 1 byte data format for example <code>'uint8'</code> the number of data read equals the size of the file so memory isn't an issue.</p>
  
  <p>I know in this binary file there is data of type <code>'int16'</code> and <code>'single'</code> however I don't know the structure of the file. I think the file is structured so there is an <code>'int16'</code> data point followed by a <code>'single'</code> data point and this is repeated until the end of the file. </p>
  
  <p>I do not know how to do this reading of mixed data types.</p>
  
  <p>I think I need a loop of some sort? </p>
  
  <p>Thanks in advance for any help or suggestions given</p>