Function Reference
— Function File: gamrnd (a, b, r, c)
— Function File: gamrnd (a, b, sz)

Return an r by c or a size (sz) matrix of random samples from the Gamma distribution with parameters a and b. Both a and b must be scalar or of size r by c.

If r and c are omitted, the size of the result matrix is the common size of a and b.