vendredi 26 mars 2021

Random matrices in R

I want to create in R 10000 random normal matrices of size n = 6. The code for one matrix is :

n = 6
H = matrix(rnorm(n*n), n,n)

But how can I create 10000 matrices in one for loop command?




Aucun commentaire:

Enregistrer un commentaire