Does DEC2HEX or HEX2DEC work on negative numbers (twos complement)?
18 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
I would like to use DEC2HEX and HEX2DEC on negative numbers but MATLAB only allows posiitve values.
Risposta accettata
MathWorks Support Team
il 25 Gen 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 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Data Type Conversion in Help Center e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!