I have probability density function of skew normal distribution.I want to generate random number that follow the skew normal distribution in matlab.
I have probability density function of skew normal distribution.I want to generate random number
Share
Can’t vouch for their performance/adequacy, but http://azzalini.stat.unipd.it/SN/ says the following, and has a link to a .zip file of MATLAB functions:
Also see this code which is in visual Basic, but should be easily portable. Relevant excerpt shown below. This uses RandNorm (also in the linked webpage) which is a pair of numbers from a unit normal distribution, and in MATLAB you should be able to use
randn(2,1).