【发布时间】:2013-08-29 10:15:41
【问题描述】:
我对 Matlab 中的 hex2dec 函数有一个奇怪的问题。 我意识到在 16bytes 数据中,它省略了 2 LSB 字节。
hex2dec('123123123123123A');
dec2hex(ans)
Warning: At least one of the input numbers is larger than the largest integer-valued floating-point
number (2^52). Results may be unpredictable.
ans =
1231231231231200
我在 Simulink 中使用它。因此我无法处理 16 字节的数据。 Simulink 将其解释为 14byte + '00'。
【问题讨论】:
标签: matlab simulink hex uint64