Main Content
matlab.unittest.constraints.IsScalar Class
Namespace: matlab.unittest.constraints
Superclasses: matlab.unittest.constraints.BooleanConstraint
Test if value is scalar
Description
The matlab.unittest.constraints.IsScalar
class provides a constraint to
test if a value is a scalar.
Creation
Description
c = matlab.unittest.constraints.IsScalar
creates
a constraint to test if a value is a scalar. The constraint is satisfied by a 1-by-1
array.
Examples
Version History
Introduced in R2014b