Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Convert IEEE754 single precision number to 16-bit integer

Status
Not open for further replies.

raghava216

Junior Member level 3
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.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top