MATLAB: How to write a matlab code to convert hexformat into decimal format of a colour image.The image resolution is 320X430.Please help me….

digital signal processingImage Processing Toolbox

Thanks

Best Answer

Assuming the hex numbers are in a 1xN char (test in this example):
Output will be Mx1 double array (ans in this example)
test = '0123456789ABCDEF';
ans = hex2dec(reshape(test, 2, numel(test)/2)');