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?
Post reply
© 2016 Powered by mzan.com design MATCHINFO