matlab.unittest.constraints.IsSparse 类
命名空间: matlab.unittest.constraints
超类: matlab.unittest.constraints.BooleanConstraint
测试数组是否稀疏
描述
matlab.unittest.constraints.IsSparse
类提供一个约束来测试数组是否为稀疏数组。
创建对象
描述
c = matlab.unittest.constraints.IsSparse
创建一个约束来测试数组是否为稀疏数组。如果数组的存储类是稀疏的,则满足该约束。
示例
版本历史记录
在 R2013a 中推出