function iterates = iterate_logistic(x,c,N) % % N the number of iterates to run % % Written by: % -- % John L. Weatherwax 2009-04-21 % % email: wax@alum.mit.edu % % Please send comments and especially bug reports to the % above email address. % % Problem on EPage 62; Solutions on EPage 161 % %----- iterates = zeros( 1, N ); iterates(1) = x; for ii=2:N xp1 = c * x * ( 1 - x ); iterates(ii) = xp1; end