帮助中心帮助中心
fixed.Interval
联盟fixed.Interval对象
自从R2019b
C =联盟(A, B)
例子
C=联盟(A、B)返回的结合fixed.Interval对象一个和B。
C=联盟(A、B)
C
A、B
一个
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
fixed.Interval|包含|相交|重叠|setdiff
包含
相交
重叠
setdiff
你有一个修改版的这个例子。你想打开这个例子与编辑?
你点击一个链接对应MATLAB命令:
运行该命令通过输入MATLAB命令窗口。Web浏览器不支持MATLAB命令。金宝app
选择一个网站
选择一个网站翻译内容,看到当地事件和提供。根据你的位置,我们建议您选择:。
你也可以从下面的列表中选择一个网站:
选择中国网站(中文或英文)最佳站点的性能。其他MathWorks国家网站不优化的访问你的位置。
联系你当地的办公室