The gamma density function
f = dgamma(x,a)
real
positive real (a can be a scalar or matrix with common size with x)
gamma density function with parameter a at the values of x :
The gamma density function.
f(x)=x.^(a-1)exp(-x)./Gamma(a)1_{x>=0}
x=0:0.1:10; y=dgamma(x,3); plot(x,y)