Cell to hex conversion.
19 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Ken
am 17 Jun. 2014
Beantwortet: Star Strider
am 17 Jun. 2014
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 Kommentare
Akzeptierte Antwort
Star Strider
am 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 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Logical finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!