function y=logistic(x,mu) %Iterating the logistic map at a parameter mu y=mu*x*(1-x);