int2bin - bin2int

Convert integer datatype to a binary string and back
ダウンロード: 267
更新 2017/4/12

Convert integer datatype to a binary string and back.

int2bin(X) returns the binary representation of X as a string. X must be an integer datatype and non-negative. Unlike Matlab's dec2bin, int2bin supports int64 and uint64 values of X greater than 2^52.

bin2int(S) returns the integer value represented by the binary string S. The class of the output is the minimum unsigned integer class that supports the number of bits in the binary string. Unlike Matlab's bin2dec, bin2int supports binary strings with up to 64 bits.

引用

Andrew Horchler (2025). int2bin - bin2int (https://github.com/horchler/int2bin-bin2int), GitHub. に取得済み.

MATLAB リリースの互換性
作成: R2016a
すべてのリリースと互換性あり
プラットフォームの互換性
Windows macOS Linux
カテゴリ
Help Center および MATLAB AnswersNumeric Types についてさらに検索
タグ タグを追加

Community Treasure Hunt

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

Start Hunting!

GitHub の既定のブランチを使用するバージョンはダウンロードできません

バージョン 公開済み リリース ノート
1.0.0.0

この GitHub アドオンでの問題を表示または報告するには、GitHub リポジトリにアクセスしてください。
この GitHub アドオンでの問題を表示または報告するには、GitHub リポジトリにアクセスしてください。