8.2.41 mustBeVector

Function File: x = mustBeVector (x, label)

Requires that input is a vector or empty.

Raises an error if the input x is not a row vector and is not 0-by-0 empty.

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".