powered by
normalize(x)
## Normalize a matrix # z <- matrix(rnorm(100, 10, 3), nrow=4) # normalize(z) ## Normalize a vector # y <- rnorm(20, 5, 2) # normalize(y)
Run the code above in your browser using DataLab