function output=logistic_plot(P_0,k,n,M)

output=zeros(1,n+1);
output(1)=P_0;
for i=1:n
    output(i+1)=k*(M-output(i))*output(i);
end

    

