ヘルプ センターヘルプ センター
このページは機械翻訳を使用して翻訳されました。最新版の英語を参照するには、ここをクリックします。
10 進数を 2 進数の文字ベクトルに変換する
bits = dec2mvl(d)
bits = dec2mvl(d,n)
例
bits = dec2mvl(d) は、10 進整数d を2 進文字ベクトルbitsに変換します。 d は252 より小さい整数でなければなりません。
bits
d
bits = dec2mvl(d,n) は、少なくともnビットを持つバイナリ文字ベクトルを返します。
n
すべて折りたたむ
正の 10 進整数の多値論理ベクトルを見つけます。
bits = dec2mvl(23)
bits = '10111'
負の 10 進整数の多値論理ベクトルを見つけます。
bits = dec2mvl(-23)
bits = '101001'
負の 10 進整数の多値論理ベクトルを見つけます。出力で返される最小ビット数を指定します。
bits = dec2mvl(-23,8)
bits = '11101001'
変換する 10 進数。10 進整数として指定します。
データ型: single | double | int8 | int16 | int32 | int64 | uint8 | uint16 | uint32 | uint64
single
double
int8
int16
int32
int64
uint8
uint16
uint32
uint64
返される最小ビット数。非負の整数として指定します。
n がbを表すのに必要なビット数より大きい場合、出力の残りの(n–b)上位ビットは次のようにパディングされます。
(n–b)
入力dが非負の整数の場合は 0
入力dが負の整数の場合は 1 秒
R2008a で導入
mvl2dec
次の MATLAB コマンドに対応するリンクがクリックされました。
コマンドを MATLAB コマンド ウィンドウに入力して実行してください。Web ブラウザーは MATLAB コマンドをサポートしていません。
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office