MATLAB: Sir, I want to convert hex string to hex, and convert to int16.

string

This problem is driving me crazy….

Best Answer

>> int16(hex2dec('f'))
ans =
15
>> whos ans
Name Size Bytes Class Attributes
ans 1x1 2 int16
>>
There must be more to the question???