matlab.unittest.constraints.IsLessThan 类
命名空间: matlab.unittest.constraints
超类: matlab.unittest.constraints.Constraint
测试值是否小于指定值
描述
matlab.unittest.constraints.IsLessThan
类提供一个约束来测试数值是否小于另一个值。
创建对象
描述
c = matlab.unittest.constraints.IsLessThan(ceilingValue)
创建一个约束来测试值是否小于 ceilingValue
并设置 CeilingValue
属性。进行比较的值的大小必须相同或兼容。有关兼容数组的详细信息,请参阅基本运算的兼容数组大小。
属性
示例
版本历史记录
在 R2013a 中推出