Cell to hex conversion.
19 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Ken
el 17 de Jun. de 2014
Respondida: Star Strider
el 17 de Jun. de 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 comentarios
Respuesta aceptada
Star Strider
el 17 de Jun. de 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 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Logical en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!