convert integer to binary or binary to integer

版本 1.0.0 (1.6 KB) 作者: Thomas
convert a column vetor of integers to a column vector of binaries or vice versa
32.0 次下载
更新时间 2021/1/10

查看许可证

example:
int2bin([2; 5; 15]) = [0 0 1 0;0 1 0 1;1 1 1 1]
or
bin2int([ 0 1 1; 2 2 2], 3) = [4; 26] (in a three digit system)

引用格式

Thomas (2024). convert integer to binary or binary to integer (https://www.mathworks.com/matlabcentral/fileexchange/85473-convert-integer-to-binary-or-binary-to-integer), MATLAB Central File Exchange. 检索时间: .

MATLAB 版本兼容性
创建方式 R2020b
兼容任何版本
平台兼容性
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