mustBeColumn

Checks that value is a column vector or raise an error.

Syntax

  • mustBeColumn(var)

  • mustBeColumn(var, argPosition)

  • C++: void mustBeColumn(const ArrayOfVector& args, int argPosition)

Input argument

  • var - a variable: all supported types and classes that implement iscolumn method.

  • argPosition - a positive integer value: Position of input argument.

Description

mustBeColumn checks that value is a column vector or raise an error.

Example

mustBeColumn(true)
mustBeColumn([])
mustBeColumn(ones(3, 2, 4))

See also

iscolumn.

History

Version
Description

1.10.0

initial version

Author

Allan CORNET

Last updated