GAMMALN GAMMALN Log Gamma Function Usage Computes the natural log of the gamma function for real arguments. The gammaln function takes only a single argument y = gammaln(x) where x is either a float or double array. The output vector y is the same size (and type) as x.