% file name: Poisson_prob.m

% the program asks the user to enter the values

% of lambda and t and returns p(k).

%

% created June. 18, 2000, F. Elguibaly

%

lambda = input('Enter the value of lambda please:');

t = input('Enter the value of t please: ');

k = input('Enter the value of k please: ');

p_poisson = (lambda*t)^k * exp(-lambda*t)...

* factorial(k)

 


Go back to book Homepage Go back to book's matlab Homepage Go back to book's Chapter 1 Homepage

Copyright © 2001 Northstar Digital Design, Inc.