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

VersionDescription

1.0.0

initial version

Author

Allan CORNET

Last updated