Method on @sym: isvector (x)

Return true if this symbolic expression is a vector.

Example:

A = sym([1 2; 3 4]);
v = sym([1 2 3]);
h = v';
isvector(A)
  ⇒ 0
isvector(v)
  ⇒ 1
isvector(h)
  ⇒ 1

See also: @sym/size, @sym/numel, @sym/isscalar.

Package: symbolic