function [ x ] = discreteLogistic( r, initPop, itMax, dt)
%discreteLogistic Returns the time series of a logistic growth
%   dx=r*x*(1-x)

x=ones(1, itMax);
x(1)=initPop;
for i=2:itMax
    dx=r*x(i-1)*(1-x(i-1));
    x(i)=x(i)+dx*dt;
end
end