Cell to hex conversion.
19 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Ken
le 17 Juin 2014
Réponse apportée : Star Strider
le 17 Juin 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 commentaires
Réponse acceptée
Star Strider
le 17 Juin 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 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Logical dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!