title: Matlab function/script to convert a real number to a hexidecimal single precision repersentation and back again
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/5232726/32-bit-hex-to-32-bit-floating-point-ieee-754-conversion-in-matlab">32 bit hex to 32 bit floating point (IEEE 754) conversion in matlab</a>  </p>
  </blockquote>
  
  
  
  <p>I am trying to test the functionality of a filter written in VHDL, the input of this filter is a single precision floating point number. To do this I want to convert an array of real numbers in MATLAB, representing a sine wave to an array of hexadecimal representation of floating point numbers. Apply this array to the filter and convert the output to real values.</p>
  
  <p>I.e. I need a function to perform the following <code>-3.48 = 0x"C05EB851"</code>, the function performed on <a href="http://babbage.cs.qc.edu/IEEE-754/Decimal.html" rel="nofollow noreferrer">this site</a> and it's inverse.</p>
  
  <p>Does anyone have a MATLAB function/m-file to perform this operation? any help is greatly appreciated </p>
  
  <p>Cheers</p>