- Converting the pdf to a cdf.
- Generating uniform random numbers (from 0 to 1) using rand
- Mapping the uniform random numbers to the cdf.
Generate Random numbers from a 2 D probability density function
28 views (last 30 days)
Show older comments
CRIS on 3 Oct 2017
Answered: Image Analyst on 3 Oct 2017
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??
Sky Sartorius on 3 Oct 2017
Conceptually, you can generate random numbers for any arbitrary distributions by
There are many functions available on the file exchange that will do this for you.
Image Analyst on 3 Oct 2017
Find more on Random Number Generation in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!