function rSeries=logisticsOrbit(x0,tf,r)

 %initial condition
    x(1)=x0;

    %iterate the map
    for n=1:tf
        x(n+1) = logisticMap(x(n), r);
    end %end of n's for loop    

rSeries=x;

