getmsb
最上位ビット
説明
例
fi
オブジェクトの最上位ビットの確認
getmsb
を使用して fi
オブジェクト a
の最上位ビットを確認します。
a = fi(-26, 1, 6, 0); c = getmsb(a)
c = 1 DataTypeMode: Fixed-point: binary point scaling Signedness: Unsigned WordLength: 1 FractionLength: 0
fi
オブジェクト a
の最上位ビットが 1
であることは、a
の 2 進数表現で確認できます。
disp(bin(a))
100110
入力引数
a
— 入力 fi
オブジェクト
スカラー | ベクトル | 行列 | 多次元配列
入力 fi
オブジェクト。スカラー、ベクトル、行列、または多次元配列として指定します。getmsb
は、固定小数点データ型の fi
オブジェクトのみをサポートします。
データ型: fi
拡張機能
C/C++ コード生成
MATLAB® Coder™ を使用して C および C++ コードを生成します。
HDL コード生成
HDL Coder™ を使用して FPGA 設計および ASIC 設計のための VHDL、Verilog および SystemVerilog のコードを生成します。
バージョン履歴
R2007b で導入
参考
bitand
| bitandreduce
| bitconcat
| bitget
| bitor
| bitorreduce
| bitset
| bitxor
| bitxorreduce
| getlsb
MATLAB コマンド
次の 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:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)