% % 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 % %----- close all; clc; clear all; addpath('../../BookCode'); N = 50; % the number of iterates to run iterates = iterate_logistic_map(0.7,2.8,N); ph_1 = plot( iterates, 'b.-' ); hold('on') iterates = iterate_logistic_map(0.7,3.25,N); ph_2 = plot( iterates, 'r.-' ); iterates = iterate_logistic_map(0.7,3.5,N); ph_3 = plot( iterates, 'g.-' ); iterates = iterate_logistic_map(0.7,3.8,N); ph_4 = plot( iterates, 'k.-' ); legend( [ph_1,ph_2,ph_3,ph_4], {'2.8','3.25','3.5','3.8'} ); grid('on'); %saveas( gcf, '../../WriteUp/Graphics/Chapter3/c_3_p_18_plot.eps', 'epsc' );