MATLAB: How to convert an array of hex values to a num

dec2hexhex2dechex2num

I have an array with '30' '2E' '30' '31' for example, it is a part of a xbee frame, so I would like to get the value (0.01) and I do not know how… Maybe hex2num? But i dont knoe how to insert the values on it.
I know how to do the oposite operation:
>>dec2hex('0.01')
4×2 char array
'30'
'2E'
'30'
'31'
Please help, I'm trying everything…

Best Answer

>> xa=dec2hex('0.01')
xa =
4×2 char array
'30'
'2E'
'30'
'31'
>> a=str2double(char(hex2dec(xa))')
a =
0.0100
>>