MATLAB Function Reference Previous page   Next Page

Determine if input is vector



tf = isvector(A) returns logical 1 (true) if A is a 1-by-N or N-by-1 vector where N >= 0, and logical 0 (false) otherwise.

The A argument can also be a MATLAB object, as described in MATLAB Classes and Objects, as long as that object overloads the size function.


Test matrix A and its row and column vectors:

See Also

isscalar, isempty, isnumeric, islogical, ischar, isa, is*

Previous page  isvarname Next page

© 1994-2005 The MathWorks, Inc.