How do I generate a vector with random numbers based on a density function?
Mostra commenti meno recenti
I'm looking for a way to generate a (1000 elements) vector of random numbers based on its density function. Here's the density function: f(x)=0.125(x-5) for 5<=x<=9 and 0 else.
Help is much appreciated!
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Random Number Generation in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!