convert_bin2dec

版本 1.0.0 (1.2 KB) 作者: galaxy
Convert from binary to decimal (sign or unsign)
18.0 次下载
更新时间 2019/10/23

查看许可证

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

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

引用格式

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

MATLAB 版本兼容性
创建方式 R2019b
兼容任何版本
平台兼容性
Windows macOS Linux
标签 添加标签

Community Treasure Hunt

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

Start Hunting!
版本 已发布 发行说明
1.0.0