主要内容

联盟

联盟fixed.Interval对象

自从R2019b

描述

例子

C=联盟(A、B)返回的结合fixed.Interval对象一个B

例子

全部折叠

创建两个fixed.Interval对象。

interval1 =固定。时间间隔(-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

发现这两个的结合时间间隔对象。

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

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

当两个输入的范围时间间隔对象不重叠,的输出是一个数组时间间隔对象覆盖欧盟范围的输入。

interval3 =固定。时间间隔(100、200)
interval3 = [100200] 1 x1固定。时间间隔with properties: LeftEnd: 100 RightEnd: 200 IsLeftClosed: true IsRightClosed: true
intervalUnion =联盟(interval1 interval3)
intervalUnion =[-10年10][100200]1 x2固定。时间间隔with properties: LeftEnd RightEnd IsLeftClosed IsRightClosed

输入参数

全部折叠

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

输出参数

全部折叠

联盟的输入fixed.Interval对象,作为一个返回fixed.Interval对象或数组fixed.Interval对象。

输出时间间隔对象包含所有的值一个B

版本历史

介绍了R2019b