This function repeats each column of a matrix n times
repcol(x, n)
x
is the input matrix
n
is the number of repetitions (can be a vector)
matrix with repeated columns