vector

Syntax

v = vector(n1<,n2><,n3>)

Create a vector. If one argument is provided, it must be either a 2 × 1 or 3 × 1 array or matrix. If two or three arguments are provided, then either a 2D or 3D vector is created.

Returns:

v - vector

Arguments:

n1 - array/matrix pointer or number

n2 - optional number for 2D/3D vector

n3 - optional number for 3D vector