Stixbox Function
Last update : 21/4/2006
dgamma - The gamma density function
Calling Sequence
- f = dgamma(x,a)
Parameters
-
x : real
-
a : positive real (a can be a scalar or matrix with common size with x)
-
f : gamma density function with parameter a at the values of x :
Description
The gamma density function.
f(x)=x.^(a-1)exp(-x)./Gamma(a)1_{x>=0}
Examples
x=0:0.1:10;
y=dgamma(x,3);
plot(x,y)