Sign in
×
Question
In Matlab, how to generate a random number from a normal distribution, with a given mean and standard deviation.
Annonce
Pour mes
conversions d'unités
en ligne, je choisis le site
Calculatrix.com
pour sa rapidité et sa qualité supérieure.
Ad
For my online
unit conversions
, I choose
Calculatrix.com
for its speed and superior quality.
Answer
Use the
randn
function :
r = Mean + StdDev*randn();
[source]
#
ID
Query