Create a function poisson pmf that computes the probability
Create a function poisson pmf that computes the probability mass function of a Poisson distribution at all values contained in a vector. Use only one loop control statement. Using Matlab.
Solution
Y = poisspdf(X,lambda) computes the Poisson pdf at each of the values in X using mean parameters in lambda. X and lambda can be vectors, matrices, or multidimensional arrays that all have the same size.
