Generate a random number from the mean and standard deviation of a lognormal distribution
Mostrar comentarios más antiguos
I have calculated the Mean and Standard deviation from a list which fits to a lognormal distribution.
The values of mean and standard deviation are: 31.59299751 and 69.72271594 respectively.
I want to generate one random number to be given as an input.
Note: With the use of lognrnd(mu,sigma); I get strange values like 2.33+e^15, etc. Whereas, I require a number around the mean of the distribution (for e.g. 50.334, etc.)
Respuesta aceptada
Más respuestas (1)
Image Analyst
el 1 de Jul. de 2013
0 votos
Might be of interest: http://www.mathworks.com/matlabcentral/fileexchange/7309-randraw Generates random numbers from over 50 different distributions.
Categorías
Más información sobre Statistics and Machine Learning Toolbox en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!