isrowvector.m 308 B

1234567891011121314151617
  1. function f = isrowvector(m)
  2. % function f = isrowvector(m)
  3. %
  4. % <m> is a matrix
  5. %
  6. % return whether <m> is 1 x n where n >= 0.
  7. % specifically:
  8. % f = isvector(m) & size(m,1)==1;
  9. %
  10. % example:
  11. % isrowvector([1 2])
  12. % isrowvector([1])
  13. % isrowvector(zeros(1,0))
  14. % ~isrowvector([])
  15. f = isvector(m) & size(m,1)==1;