Borrar filtros
Borrar filtros

Convert decimal to hex in a table

3 visualizaciones (últimos 30 días)
Ketan Bharucha
Ketan Bharucha el 31 de Mzo. de 2017
Comentada: Fangjun Jiang el 27 de En. de 2021
I have a table similar to shown below, how can I convert everything in the table from decimal to hex.
13 232 4 43 88 179 245 107 120 4 232 13 232 4 43 153 20 41 187 136 8 68 13 232 4 73 153 16 68 49 96 4 72 13 224 113 209 88 165 128 250 177 143 178 13 224 54 19 153 64 232 46 64 100 25 13 12 32 130 88 191 3 97 130 238 251 13 12 32 130 88 191 3 97 130 238 251

Respuesta aceptada

Fangjun Jiang
Fangjun Jiang el 31 de Mzo. de 2017
Would this suffice?
>> dec2hex([13 232 4 43])
ans =
0D
E8
04
2B
  2 comentarios
mohammad ahmad
mohammad ahmad el 26 de En. de 2021
How to reshape hexa to 2*2
or if i have 256 hexa how to convert it to 16*16
Fangjun Jiang
Fangjun Jiang el 27 de En. de 2021
>> dec2bin(hex2dec('A'))
ans =
'1010'
>> dec2hex(256)
ans =
'100'

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Numeric Types en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by