MATLAB: Cell to hex conversion.

cell arrayshex

Hello everyone,
I have an array of cell j of size 66×1 it contains:
'00'
'00'
'00'
'01'
'67'
'64'
'00'
'28'
'AD'
'84'
'B7'
'DD'
'3F'
'CA'
'32'
'3B'
'1D'
'C5'
'62'
'22'
'25'
'19'
'1D'
'8E'
'E2'
'B1'
'11'
'50'
'96'
'FB'
'A7'
'EE'
'11'
'A1'
'11'
'59'
'B9'
'B3'
'70'
'86'
'B7'
'FF'
'FD'
'FA'
'BF'
'A7'
'FF'
'FF'
'F5'
'F8'
'E5'
'5B'
'FF'
'FE'
'FD'
'5F'
'D3'
'FF'
'FF'
'FA'
'FE'
'73'
'05'
'89'
'C8'
I want to convert the cell class into hex format 'uint8' but I have tried many method and fail badly.
Thank you very much for your response.

Best Answer

If you want to convert the hex cell array into uint8:
Hx = {'00'
'00'
'00'
'01
'67'
...
'C8'};
Hd = hex2dec(Hx);
H8 = uint8(Hd);