Does DEC2HEX or HEX2DEC work on negative numbers (twos complement)?
26 ビュー (過去 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!