Commands by Category:
Index:
Creates a column vector by appending the columns/rows of a matrix to each other.
vec
vecr
x (NxK matrix) – data
yc ((N*K)x1 vector) – the columns of x appended to each other.
yr ((N*K)x1 vector) – the rows of x appended to each other and the result transposed.
x = { 1 2, 3 4 }; yc = vec(x); yr = vecr(x);
The code above assigns the variables yc and yr:
1 1 yc = 3 yr = 2 2 3 4 4
vecr() is much faster.
vecr()
previous
vector (dataloop)
next
vget