title: Read a binary file in MatLab
body: <p>In C++, I wrote my data in a binary file. My data is like this: <code>float data[a][b]</code> (this is in C++). Now, i just want to read this binary file from Matlab (of course, I am pretty new in matlab), to get the A array ( <code>A = data[a][b]</code> ). I search many solutions in google such as:</p>
  
  <pre><code>frid = fopen('data.bin', 'rb');
  A = fread(fid,count,type)
  ...
  </code></pre>
  
  <p>However, maybe because I'm new, those solutions don't work for me!</p>
  
  <p>Can anyone give me a suggestion to read this data? Any answer is welcome! Thanks!</p>