Homework 2_partone

# Homework 2_partone - x(i = a*x(i-1(1-x(i-1 end...

This preview shows page 1. Sign up to view the full content.

% Problem 1 Script File % population for when a = 0.6 clear a = 0.6; time(1)=0; x(1) = 0.1; for i = 2:31; time(i) = i-1; x(i) = a*x(i-1)*(1-x(i-1)); end subplot(5,1,1), plot (time,x) % population for when a = 2.0 a = 2.0; time(1)=0; x(1) = 0.1; for i = 2:31; time(i) = i-1; x(i) = a*x(i-1)*(1-x(i-1)); end subplot(5,1,2), plot (time,x) % population for when a = 3.3 a = 3.3; time(1)=0; x(1) = 0.1; for i = 2:31; time(i) = i-1;
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: x(i) = a*x(i-1)*(1-x(i-1)); end subplot(5,1,3), plot (time,x) % population for when a = 3.5 a = 3.5; time(1)=0; x(1) = 0.1; for i = 2:31; time(i) = i-1; x(i) = a*x(i-1)*(1-x(i-1)); end subplot(5,1,4), plot (time,x) % population for when a = 4.0 a = 4.0; time(1)=0; x(1) = 0.1; for i = 2:31; time(i) = i-1; x(i) = a*x(i-1)*(1-x(i-1)); end subplot(5,1,5), plot (time,x)...
View Full Document

{[ snackBarMessage ]}

### What students are saying

• As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

Kiran Temple University Fox School of Business ‘17, Course Hero Intern

• I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

Dana University of Pennsylvania ‘17, Course Hero Intern

• The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

Jill Tulane University ‘16, Course Hero Intern