How to generate random numbers which follow an arbitrary frequency distribution?
Ältere Kommentare anzeigen
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.

Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Histograms finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!