I'm trying to run a simulation of a poisson point process with both a set lambda and a set population. The poissrand function, however, randomly gives a number of points for the population. Is there any way to set the population at a fixed value?
Here is my code currently:
npoints = poissrnd(lamda);
pproc = rand(npoints,2)*100;
plot(pproc(:, 1), pproc(:, 2), '.');