Convert IEEE754 single precision number to 16-bit integer

Status
Not open for further replies.

raghava216

Junior Member level 3
Joined
Mar 10, 2011
Messages
27
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Visit site
Activity points
1,646
Dear All,

I would like to convert IEEE754 single precision number to a 16-bit integer (2's complement representation).

I read that there is a command 'int16', but it is not accepting the hexadecimal string as input argument.

Also, the output 16-bit integer should be represented in hex. For example if the bit representation is '1000100010001010'..then I want it to be represented as '888A'.

I am new to MATLAB. Any help in writing the program will b appreciated.

Thanks.
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…