How to generate random numbers which follow an arbitrary frequency distribution?
Mostrar comentarios más antiguos
I need to generate a vector of random numbers (say 100 numbers) between 0 and 1 which follow a particular trend.Suppose I have a histogram (not data, just the picture) more or less like the one below. Now, the random numbers that I need must have a frequency distribution similar to that shown by this histogram... That is I need more of the numbers to fall between .9 and 1. And I need this to work for any given frequency distribution.. Is it possible? I am very, very new to MATLAB.

Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Histograms 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!