Home how do you generate random numbers from a bimodal Gaussian Probability Density Function in MATLAB?
Reply: 0

how do you generate random numbers from a bimodal Gaussian Probability Density Function in MATLAB?

user314
1#
user314 Published in April 22, 2018, 8:06 pm

How do you generate numbers from a bimodal Gaussian PDF in MATLAB?

For a unimodal symmetric Gaussian PDF it is really easy:

x=randn(1000,1); 

But now I want to draw 1000 numbers from a Gaussian PDF that has two peaks (or two means). How do I do this?

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.319147 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO