bin2decsig(A). Function to convert a binary number to decimal signed.

bin2decsig(A) is a function that converts a binary number to a signed decimal.
139 Downloads
Updated 2 Aug 2016

View License

Few days ago i saw a post about someone asking how to convert binary to decimal signed, so i wrote a code that uses a string as an input and the output is a double. The sumation of the 2's complement is a mess, but i'm sure you can make it better.

Cite As

Nicolás Dueñas (2026). bin2decsig(A). Function to convert a binary number to decimal signed. (https://www.mathworks.com/matlabcentral/fileexchange/58505-bin2decsig-a-function-to-convert-a-binary-number-to-decimal-signed), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2015a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Data Type Conversion in Help Center and MATLAB Answers
Version Published Release Notes
1.0.0.0