from decimal to two's complement

a function to convert a decimal number into 2's complement number of defined size

You are now following this Submission

The function coverts a decimal number into a two's compelement number of a given in argument number of bits.

Cite As

Moatasem Chehaiber (2026). from decimal to two's complement (https://in.mathworks.com/matlabcentral/fileexchange/13426-from-decimal-to-two-s-complement), MATLAB Central File Exchange. Retrieved .

Acknowledgements

Inspired: Two's Complement

Categories

Find more on Wireless Communications in Help Center and MATLAB Answers

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

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