matlab.unittest.constraints.HasNaN 类
命名空间: matlab.unittest.constraints
超类: matlab.unittest.constraints.BooleanConstraint
测试数组是否包含 NaN
值
描述
matlab.unittest.constraints.HasNaN
类提供一个约束来测试数组是否包含 NaN
值。
创建对象
描述
c = matlab.unittest.constraints.HasNaN
创建一个约束来测试数组是否包含 NaN
值。包含至少一个 NaN
值的数值数组满足该约束。
示例
版本历史记录
在 R2013a 中推出