Generate Random numbers from a 2 D probability density function
Mostrar comentarios más antiguos
i have the follow pdf : f(B,S); how can i generate random values for B and S that follow this distribution?? can someone help me??
Respuestas (2)
Sky Sartorius
el 3 de Oct. de 2017
0 votos
Conceptually, you can generate random numbers for any arbitrary distributions by
- Converting the pdf to a cdf.
- Generating uniform random numbers (from 0 to 1) using rand
- Mapping the uniform random numbers to the cdf.
Image Analyst
el 3 de Oct. de 2017
0 votos
Categorías
Más información sobre Random Number Generation en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!