title: How to import .dat file into Matlab?
body: <p>i have one file (name.dat) which is binary data, 
  it has 12 lines of header, then just one column of 10^6 floating data points.</p>
  
  <p>I searched that in Matlab I can do </p>
  
  <pre><code>fid=fopen('name.dat','r');
  A= fscanf(fid, '%f');
  fclose(fid);
  </code></pre>
  
  <p>When run the three lines of code above, and A is empty;
  it is wired.</p>
  
  <p>Can you help me out of this ?</p>
  
  <p>Thanks </p>