2s complement to decimal converter

Converts 2s complement to signed decimal equivalent

You are now following this Submission

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://www.mathworks.com/matlabcentral/fileexchange/27816-2s-complement-to-decimal-converter), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0.0