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