为什么Matlab 使用format hex,答案为什么不对

来源:百度知道 编辑:UC知道 时间:2024/06/08 15:39:16
>> format hex
>> myID = 16959325

myID =

41702c75d0000000

如果我用dec2hex,得到的结果是正确的

正确答案应该是102c75d

哪位大虾详细解释一下,为什么会这样呢? format hex到底是怎么运作的?

"The hexadecimal display corresponds to the internal representation of the value. It is not the same as the hexadecimal notation in the C programming language."摘自MATLAB Help -format。
有道翻译:”十六进制显示对应的内部表示的值。这不是一样的十六进制记数法在C编程语言”。