MATLAB: How to take a hex value as user input

hex input

& Is it possible to manipulate hex values(eg Xoring etc.) directly or indirectly?

Best Answer

No, MATLAB does not accept HEX literals. You can specify HEX in a string/char array.
You can enter hex data as strings/char, e.g.:
>> str = 'FF2';
>> reshape(dec2bin(hex2dec(str(:)),4).',1,[])
ans = 111111110010