Question

In Matlab, how to generate a random number from a normal distribution, with a given mean and standard deviation.


Annonce
Ad

Answer

Use the randn function :
r = Mean + StdDev*randn();


[source]
# ID Query