sir, I want to convert hex string to hex, and convert to int16.
Show older comments
This problem is driving me crazy....
Accepted Answer
More Answers (1)
The simplest way to stop you going crazy is simply to look in the documentation. Under Matlab -> Language fundamentals -> Data Type -> Data Type conversion you'll find the documentation for hex2dec.
d = uint16(hex2dec('2A5F'))
2 Comments
KiJun Baek
on 19 Nov 2015
dpb
on 19 Nov 2015
_"...look in the documentation. Under Matlab -> Language fundamentals -> Data Type -> Data Type conversion..."
Also for OP that is seemingly almost totally unknown any longer is
>> lookfor hex
dec2hex - Convert decimal integer to hexadecimal string.
hex2dec - Convert hexadecimal string to decimal integer.
hex2num - Convert IEEE hexadecimal string to double precision number.
num2hex - Convert singles and doubles to IEEE hexadecimal strings.
>>
when one has a subject area but not sure of the function name actually looking for...
Categories
Find more on Data Type Conversion in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!