Does DEC2HEX or HEX2DEC work on negative numbers (twos complement)?
23 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
I would like to use DEC2HEX and HEX2DEC on negative numbers but MATLAB only allows posiitve values.
Akzeptierte Antwort
MathWorks Support Team
am 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 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Data Type Conversion finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!