Possible Duplicate:
32 bit hex to 32 bit floating point (IEEE 754) conversion in matlab
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.
I.e. I need a function to perform the following -3.48 = 0x"C05EB851", the function performed on this site and it’s inverse.
Does anyone have a MATLAB function/m-file to perform this operation? any help is greatly appreciated
Cheers
Let’s try your example:
close enough?