Convert E2AF(hexadecimal)to base 10(decimal)
古いコメントを表示
Hello, I'm new to MatLab and wanted a little help with the question in the title.
>> hex2dec(E2AF)
using
>> hexStr=E2AF
but it keeps returning this error:
Unrecognized function or variable 'E2AF'.
Let me know if you think you could help! I woud really appreciate it!
回答 (1 件)
Walter Roberson
2020 年 2 月 4 日
dec2hex('E2AF')
or
sscanf('E2Af', '%x')
or starting in R2019b,
0xE2AF %hex constants are accepted!
カテゴリ
ヘルプ センター および File Exchange で Logical についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!