Name

isvector — check if a variable is a vector

Calling Sequence

t=isvector(x)

Parameters

x

vector or matrix

t

a boolean

Description

isvector(x) returns true if x is a vector (one of its dimension is different from 1).

Examples

 
isvector(ones(10,1))
isvector(1)