convert_bin2dec

Version 1.0.0 (1.16 KB) by galaxy
Convert from binary to decimal (sign or unsign)
19 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 (2026). convert_bin2dec (https://au.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
Version Published Release Notes
1.0.0