主要内容

相交

十字路口的fixed.Interval对象

自从R2019b

描述

例子

C=相交(A、B)返回的交集fixed.Interval对象一个B

例子

全部折叠

创建两个fixed.Interval对象。

interval1 = fixed.Interval(-10年,10)
interval1 =[10] -10年1 x1固定。时间间隔with properties: LeftEnd: -10 RightEnd: 10 IsLeftClosed: true IsRightClosed: true
interval2 = fixed.Interval (0, 20)
interval2 = 20] [0, 1 x1固定。时间间隔with properties: LeftEnd: 0 RightEnd: 20 IsLeftClosed: true IsRightClosed: true

发现两者的交集时间间隔对象。

intervalIntersection12 =相交(interval1 interval2)
intervalIntersection12 = [0, 10] 1 x1固定。时间间隔with properties: LeftEnd: 0 RightEnd: 10 IsLeftClosed: true IsRightClosed: true

输出是一个时间间隔对象的范围是两个输入的范围的交集时间间隔对象。

当两个输入的范围时间间隔对象不重叠,输出是一个空时间间隔对象。

interval3 = fixed.Interval (100200)
interval3 = [100200] 1 x1固定。时间间隔with properties: LeftEnd: 100 RightEnd: 200 IsLeftClosed: true IsRightClosed: true
intervalIntersection13 =相交(interval1 interval3)
intervalIntersection13 = 1 x0固定。时间间隔with properties: LeftEnd RightEnd IsLeftClosed IsRightClosed

输入参数

全部折叠

输入fixed.Interval对象,指定为fixed.Interval对象或数组fixed.Interval对象。

输出参数

全部折叠

十字路口的输入fixed.Interval对象,作为一个返回fixed.Interval对象或数组fixed.Interval对象。

输出时间间隔对象包含所有值在两个输入,一个B

版本历史

介绍了R2019b