matlab.unittest.constraints.IsSparse Class
Namespace: matlab.unittest.constraints
Superclasses: matlab.unittest.constraints.BooleanConstraint
Test if array is sparse
Description
The matlab.unittest.constraints.IsSparse
class provides a constraint to
test if an array is sparse.
Creation
Description
c = matlab.unittest.constraints.IsSparse
creates
a constraint to test if an array is sparse. The constraint is satisfied if the storage
class of the array is sparse.
Examples
Version History
Introduced in R2013a