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!