Does DEC2HEX or HEX2DEC work on negative numbers (twos complement)?
21 views (last 30 days)
Show older comments
I would like to use DEC2HEX and HEX2DEC on negative numbers but MATLAB only allows posiitve values.
Accepted Answer
MathWorks Support Team
on 25 Jan 2010
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 Comments
More Answers (0)
See Also
Categories
Find more on Web Services in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!