x =
mustBeScalar (x, label)
¶Requires that input is scalar.
Raises an error if the input x is not scalar, as determined by
isscalar (x)
.
label is an optional input that determines how the input will be described in
error messages. If not supplied, inputname (1)
is used, and if that is
empty, it falls back to "input".