Hi,
If I have a vector
v = [i
j
k]
I want to repeat a vector in a vector format couple of times:
v=[i
j
k
i
j
k
i
j
k
]
Actually I would like to use this in reshaping a matrix to a vector. but I want to add a column by the variable name as the first two columns:
z = [
1 2 3
4 5 6
7 8 9]
rowname = [ a b c]
calname = [i j k]
I am using Z = shape(Z, ncol*nrow, 1);
I want to create a table looks like:
a i 1
a j 2
a k 3
b i 4
b j 5
b k 6
c i 7
c j 8
c k 9
Thank you