Simple rejection sampling in matlab

The following Matlab project contains the source code and Matlab examples used for simple rejection sampling. SAMPLEDIST Sample from an arbitrary distribution     sampleDist(f,M,N,b) retruns an array of size X of random values sampled from the distribution defined by the probability density function referred to by handle f, over the range b = [min, max].

The source code and files included in this project are listed in the project files section, please make sure whether the listed source code meet your needs there.

Project Files: 

File NameSize
license.txt 1316
sampleDist.m 1455