Does DEC2HEX or HEX2DEC work on negative numbers (twos complement)?
9 次查看(过去 30 天)
显示 更早的评论
I would like to use DEC2HEX and HEX2DEC on negative numbers but MATLAB only allows posiitve values.
采纳的回答
MathWorks Support Team
2010-1-25
The ability to use these functions on negative numbers is not available in MATLAB.
To work around this issue, use the following attached files:
ndec2hex.m
nhex2dec.m
0 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Data Type Conversion 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!