The Designer's Guide Community Forum
https://designers-guide.org/forum/YaBB.pl Simulators >> System Simulators >> random number generation function in matlab https://designers-guide.org/forum/YaBB.pl?num=1325765859 Message started by singh on Jan 5th, 2012, 4:17am |
Title: random number generation function in matlab Post by singh on Jan 5th, 2012, 4:17am i wanted to use normrnd(mu,sigma,m,n) in ordetr to generate random numbers from normal distribution with mean mu =0 and some standard deviation say sigma. But my matlab doesnt support statistical toolbox. Another possibilty i look is to use randn(m,n) which has mean =0 and standard deviation equal to 1 and this is normal matlab functionality. Please tell me how i can use randn function with some standard devation value = sigma (say) instead of 1?? thanks in advance |
Title: Re: random number generation function in matlab Post by Frank Wiedmann on Jan 5th, 2012, 4:32am Multiply by sigma (see example 1 from http://www.mathworks.com/help/techdoc/ref/randn.html). |
Title: Re: random number generation function in matlab Post by singh on Jan 5th, 2012, 4:50am Frank Wiedmann wrote on Jan 5th, 2012, 4:32am:
thank you |
The Designer's Guide Community Forum » Powered by YaBB 2.2.2! YaBB © 2000-2008. All Rights Reserved. |