mac:
mex -largeArrayDims -v -O -I"randist" "calc_PNF.c" "randist/binomial.c" "randist/specfunc/gamma.c"

windows:
mex -largeArrayDims -v -O -I"randist" "calc_PNF.c" "randist\binomial.c" "randist\specfunc\gamma.c"