From: Jennifer Faggi Renault on
Hello
i want to know if there is a methode or command that converts ASCII caractere to hex
and thanls in advance
From: James Tursa on
"Jennifer Faggi Renault" <asma_192(a)live.fr> wrote in message <hqq2k3$4e4$1(a)fred.mathworks.com>...
> Hello
> i want to know if there is a methode or command that converts ASCII caractere to hex
> and thanls in advance

You can often find functions by doing a lookfor with a partial name. e.g.,

>> lookfor hex
dec2hex - Convert decimal integer to hexadecimal string.
hex2dec - Convert hexadecimal string to decimal integer.
hex2num - Convert IEEE hexadecimal string to double precision number.
num2hex - Convert singles and doubles to IEEE hexadecimal strings.
hextop - Hexagonal layer topology function.

Then from this list you can see that hex2dec is probably the function you need.

James Tursa
From: us on
"Jennifer Faggi Renault" <asma_192(a)live.fr> wrote in message <hqq2k3$4e4$1(a)fred.mathworks.com>...
> Hello
> i want to know if there is a methode or command that converts ASCII caractere to hex
> and thanls in advance

a hint:

help hex2dec;
hex2dec('ff')
% ans = 255

us