powered by
Normaliz the columns of x to a length of 1.
normc(x)
n*p matrix
xn normalized result
# NOT RUN { #ex1. m <- matrix(1:4,2,2,byrow=TRUE) normc(m) #ex2. n <- matrix(rnorm(100,10,1),10,10) normc(n) # }
Run the code above in your browser using DataLab