Issue with load from text file with hex data
1 回表示 (過去 30 日間)
古いコメントを表示
Create a text file with 0xd080 in the text file
use the command load('textfilename')
The value returned is 57472 however the actual value should have been 53376
Even if i use load('textfilename','-ascii') also does not solve the problem. Still invalid data is returned.
How to fix this problem?
0 件のコメント
回答 (1 件)
Mathieu NOE
2021 年 12 月 1 日
my 2 cents suggestion
>> a = readlines('textfilename.txt')
a =
"0xd080 "
>> b = hex2dec(char(a))
b =
53376
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Data Import and Export についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!