Path: Math/Probability
% Generate a Poission random matrix using a normal approximation. lambda should be >= 5 for this to work. This routine forces the results to be positive since the Poisson distribution is always > 0. Type RandPN for a demo. -------------------------------------------------------------------------- Form: q = RandPN( lambda, n, m ) -------------------------------------------------------------------------- ------ Inputs ------ lambda (1,1) Coefficient n (1,1) Rows m (1,1) Columns ------- Outputs ------- q (n,m) Random matrix --------------------------------------------------------------------------
Common: Graphics/NewFig
Back to the Math Module page