how to write a matlab code to convert hexformat into decimal format of a colour image.The image resolution is 320X430.Please help me....
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Thanks
5 Kommentare
Image Analyst
am 7 Sep. 2012
But you didn't do what I asked. Are those letters in a string variable? Can you do "whos" on it?
Akzeptierte Antwort
Greg
am 7 Sep. 2012
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)');
3 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Data Type Conversion finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!