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 次查看(过去 30 天)
显示 更早的评论
Thanks
5 个评论
Image Analyst
2012-9-7
But you didn't do what I asked. Are those letters in a string variable? Can you do "whos" on it?
采纳的回答
Greg
2012-9-7
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)');
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Data Type Conversion 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!