Requires that input is a scalar logical.
Raises an error if the input x is not scalar, as determined by
isscalar (x) && islogical (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".