from decimal to two's complement

a function to convert a decimal number into 2's complement number of defined size
3.6K Downloads
Updated 18 Dec 2006

No License

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

Cite As

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

MATLAB Release Compatibility
Created with R14
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Wireless Communications in Help Center and MATLAB Answers
Acknowledgements

Inspired: Two's Complement

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.0.0.0