Skip to content
Permalink
a5a5f364e5
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
9 lines (5 sloc) 164 Bytes
% function y = randpoisson(av,M,N)
% Creates M by N array with Poisson distribution of std = av
function y = randpoisson(av,M,N)
x = rand(M,N);
y = -av*log(x);