Loading hex values from a file vs executing .m file that contains same values
1 回表示 (過去 30 日間)
古いコメントを表示
Emmanuelle Laprise
2024 年 4 月 24 日
コメント済み: Emmanuelle Laprise
2024 年 5 月 9 日
I have a file: test_hex_load.m
that contains one line
0x52d50
When I try to load the file, instead of just executing the m-file, it does not give the same result and I was wondering why that would be?
>> clear
>> test_hex_load
ans =
uint32
339280
>> load("test_hex_load.m")
>> test_hex_load
test_hex_load =
339536
4 件のコメント
Stephen23
2024 年 4 月 24 日
@Emmanuelle Laprise: you could make an enhancement request:
But it is more likely that this feature would be included in the modern, more powerful text importing functions (e.g. READMATRIX, READTABLE, etc). This topic has been discussed before, with alternative solutions:
採用された回答
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Downloads についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!