convert integer to binary or binary to integer

バージョン 1.0.0 (1.58 KB) 作成者: Thomas
convert a column vetor of integers to a column vector of binaries or vice versa
ダウンロード: 33
更新 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 (2025). convert integer to binary or binary to integer (https://jp.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