How do I create a random matrix from a normal distribution given the mean and variance (mean = 2 and variance = 8).
11 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
From a 100x100 random matrix that I have previously created I need to create another random matrix from a normal distribution given the mean and variance (let's say that mean is 2 and variance is 8). Does anyone know how to do this?
5 Commenti
Risposta accettata
Star Strider
il 13 Ott 2018
I would just do this:
mu = 2;
vr = 8;
RandomNormalMatrix = mu + sqrt(vr)*randn(100);
3 Commenti
Tan Nguyen
il 8 Apr 2021
Could you tell me how the result changes if we use randn(1000000) in spite of randn(100)?
Thank you,
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Random Number Generation in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!