matlab.unittest.constraints.IsScalar 类
命名空间: matlab.unittest.constraints
超类: matlab.unittest.constraints.BooleanConstraint
测试值是否为标量
描述
matlab.unittest.constraints.IsScalar
类提供一个约束来测试值是否为标量。
创建对象
描述
c = matlab.unittest.constraints.IsScalar
创建一个约束来测试值是否为标量。1×1 数组满足该约束。
示例
版本历史记录
在 R2014b 中推出