convert_bin2dec

Version 1.0.0 (1.16 KB) by galaxy
Convert from binary to decimal (sign or unsign)
18 Downloads
Updated 23 Oct 2019

View License

bin -> unsigned decimal
>> a = convert_bin2dec('101000001', 0);
a = 321

bin -> signed decimal
>> a = convert_bin2dec('101000001', 1);
a = -191

Cite As

galaxy (2024). convert_bin2dec (https://www.mathworks.com/matlabcentral/fileexchange/73091-convert_bin2dec), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2019b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Tags Add Tags

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