Section: Mathematical Functions
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
.
gammaln
function over the range [-5,5]
.
--> x = linspace(0,10); --> y = gammaln(x); --> plot(x,y); xlabel('x'); ylabel('gammaln(x)');
which results in the following plot.