normalize columns of a matrix.
normc(X)
X
the input martix
Y: the output matrix
library(mvtnorm) n = 350 p = 100 Sigma = matrix(0, p, p) X <- rmvnorm(n,matrix(0, p, 1), Sigma) X <- normc(X)