M-File Help: isvec | View code for isvec

# isvec

Test if argument is a vector

isvec(v) is true (1) if the argument v is a 3-vector, else false (0).

isvec(v, L) is true (1) if the argument v is a vector of length L, either a row- or column-vector. Otherwise false (0).

## Notes

- differs from MATLAB builtin function ISVECTOR, the latter returns true for the case of a scalar, ISVEC does not.

## See also

ishomog, isrot

© 1990-2014 Peter Corke.