2s complement to decimal converter
Version 1.0.0.0 (1.18 KB) by
Reza
Converts 2s complement to signed decimal equivalent
Converts 2s complement to signed decimal equivalent. Takes two arguments - the data, and the number of bits wide the data is. For example:
out = twos2decimal(data,16);
Cite As
Reza (2026). 2s complement to decimal converter (https://in.mathworks.com/matlabcentral/fileexchange/27816-2s-complement-to-decimal-converter), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2010a
Compatible with any release
Platform Compatibility
Windows macOS LinuxCategories
Find more on Numeric Types in Help Center and MATLAB Answers
Tags
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.0.0 |
