check if a variable is a vector
t=isvector(x)
vector or matrix
a boolean
isvector(x) returns true if x is a vector (only one of its dimension is different from 1).
isvector(x)
x
isvector(ones(10,1)) isvector(1)