overlaps
説明
例
2 つの fixed.Interval
オブジェクトがオーバーラップするかどうかの判別
2 つの fixed.Interval
オブジェクトを作成し、それらの範囲がオーバーラップするかどうかを判別します。
interval1 = fixed.Interval(-1, 1); interval2 = fixed.Interval(0, 1); overlaps(interval1, interval2)
ans = logical 1
Interval
オブジェクトの範囲がオーバーラップする場合、関数 overlaps
は値 1 または true
を返します。
入力引数
A, B
— 入力 fixed.Interval
オブジェクト
fixed.Interval
オブジェクト | fixed.Interval
オブジェクトの配列
入力 fixed.Interval
オブジェクト。fixed.Interval
オブジェクト、または fixed.Interval
オブジェクトの配列として指定します。
出力引数
bool
— 区間がオーバーラップするかどうか
true | false | logical 値のベクトル
入力 fixed.Interval
オブジェクトがオーバーラップするかどうか。logical 値または logical 値のベクトルとして返されます。
バージョン履歴
R2019b で導入
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)