The Designer's Guide Community
Forum
Welcome, Guest. Please Login or Register. Please follow the Forum guidelines.
Apr 16th, 2024, 9:27am
Pages: 1
Send Topic Print
random number generation function in matlab (Read 70 times)
singh
Community Member
***
Offline



Posts: 57

random number generation function in matlab
Jan 05th, 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
Back to top
 
 
View Profile   IP Logged
Frank Wiedmann
Community Fellow
*****
Offline



Posts: 677
Munich, Germany
Re: random number generation function in matlab
Reply #1 - Jan 5th, 2012, 4:32am
 
Multiply by sigma (see example 1 from http://www.mathworks.com/help/techdoc/ref/randn.html).
Back to top
 
 
View Profile WWW   IP Logged
singh
Community Member
***
Offline



Posts: 57

Re: random number generation function in matlab
Reply #2 - Jan 5th, 2012, 4:50am
 
Frank Wiedmann wrote on Jan 5th, 2012, 4:32am:
Multiply by sigma (see example 1 from http://www.mathworks.com/help/techdoc/ref/randn.html).



thank you
Back to top
 
 
View Profile   IP Logged
Pages: 1
Send Topic Print
Copyright 2002-2024 Designer’s Guide Consulting, Inc. Designer’s Guide® is a registered trademark of Designer’s Guide Consulting, Inc. All rights reserved. Send comments or questions to editor@designers-guide.org. Consider submitting a paper or model.