isvector

Checks input is vector.

Syntax

  • tf = isvector(M)

Input argument

  • M - a variable

Output argument

  • tf - logical: result of 'isvector'.

Description

isvector returns an scalar logical if entry is an vector.

Example

A = eye(3, 3);
R = isvector(A)
R = isvector(A(:,1))

See also

isempty.

History

Author

Allan CORNET

Last updated