powered by
normalize columns of a matrix.
normc(X)
Y: the output matrix
the input martix
library(mvtnorm) n = 350 p = 100 Sigma = matrix(0, p, p) X <- rmvnorm(n,matrix(0, p, 1), Sigma) X <- normc(X)
Run the code above in your browser using DataLab