how to make lognormal distribution with random numbers?

2 visualizaciones (últimos 30 días)
Pritha Pande
Pritha Pande el 12 de Jul. de 2017
Respondida: Walter Roberson el 12 de Jul. de 2017
I want lognormal distribution for number ranging from 0.1 to 30? It is possible to make?
  1 comentario
Torsten
Torsten el 12 de Jul. de 2017
Editada: Torsten el 12 de Jul. de 2017
Not clear what you mean.
You are given parameters "mu" and "sigma" of a lognormal distribution and you want to generate random numbers from this distribution ?
https://en.wikipedia.org/wiki/Log-normal_distribution
Best wishes
Torsten.

Iniciar sesión para comentar.

Respuestas (1)

Walter Roberson
Walter Roberson el 12 de Jul. de 2017
First create a probability distribution object with distribution 'lognormal'; https://www.mathworks.com/help/stats/makedist.html#inputarg_distname . Then truncate the distribution; https://www.mathworks.com/help/stats/prob.truncatabledistribution.truncate.html

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by