Cell to hex conversion.
13 views (last 30 days)
Show older comments
Hello everyone,
I have an array of cell j of size 66x1 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.
0 Comments
Accepted Answer
Star Strider
on 17 Jun 2014
If you want to convert the hex cell array into uint8:
Hx = {'00'
'00'
'00'
'01
'67'
...
'C8'};
Hd = hex2dec(Hx);
H8 = uint8(Hd);
0 Comments
More Answers (0)
See Also
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!