isequivalent
2 つの numerictype
オブジェクトが同等のプロパティをもつかどうかの判別
説明
例
2 つの numerictype オブジェクトの比較
isequivalent
を使用して 2 つの numerictype
オブジェクトが同じデータ型をもつかどうかを判別します。
T1 = numerictype(1, 16, 2^-12, 0)
T1 = DataTypeMode: Fixed-point: slope and bias scaling Signedness: Signed WordLength: 16 Slope: 2^-12 Bias: 0
T2 = numerictype(1, 16, 12)
T2 = DataTypeMode: Fixed-point: binary point scaling Signedness: Signed WordLength: 16 FractionLength: 12
isequivalent(T1,T2)
ans = logical
1
T1
と T2
のデータ型モードは異なりますが、これらの 2 つのオブジェクトは同じデータ型をもつので、関数は 1
(true
) を返します。
入力引数
T1, T2
— 比較する入力
numerictype
オブジェクト
比較する入力。numerictype
オブジェクトとして指定します。
バージョン履歴
R2014a で導入
参考
isequal
| ispropequal
| eq
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)