title: Import hex-data from a file with matlab
body: <p>This is a part of my data. </p>
  
  <pre><code>ªU€ÿ       ÿ  dô      @           @›ÿÿ;&lt;  …æ  ³   3m ...
  </code></pre>
  
  <p>It is saved in a file. When I look at it with a hex-editor I can see the hex-values. How can I read this "hex-data" with matlab?</p>
  
  <p>EDIT: I get this error:</p>
  
  <pre><code>??? Error using ==&gt; hex2dec at 38
  Input string found with characters other than 0-9, a-f, or A-F.
  </code></pre>
  
  <p>with this code:</p>
  
  <pre><code>a = fread(fid,1,'uint32','l'); 
  fprintf('%X',a) 
  b = hex2dec(a);
  </code></pre>