Borrar filtros
Borrar filtros

Generate random decimal value

4 visualizaciones (últimos 30 días)
Wen Shu Wong
Wen Shu Wong el 2 de Dic. de 2020
Comentada: Cris LaPierre el 2 de Dic. de 2020
How to generate random decimal value between 1.00 to 2.00?

Respuesta aceptada

Cris LaPierre
Cris LaPierre el 2 de Dic. de 2020
r=rand+1
r = 1.5233
  4 comentarios
Wen Shu Wong
Wen Shu Wong el 2 de Dic. de 2020
Thank you. Is it possible to create a left skewed distribution from the distribution above? I can't seem to find any resources on this.
Cris LaPierre
Cris LaPierre el 2 de Dic. de 2020
rand creates a uniform distribution. You might look into the pearsrnd function, as that lets you define your distribution by setting the mean, standard deviation, skewness and kurtosis.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Random Number Generation en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by