M-File Help: isvec | View code for isvec

# isvec

Test if 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.
- Gives same result for row- or column-vector, ie. 3x1 or 1x3 gives true.

## See also

ishomog, isrot

© 1990-2014 Peter Corke.