Does DEC2HEX or HEX2DEC work on negative numbers (twos complement)?
조회 수: 21 (최근 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!