HOMEWORK 3A - HOMEWORK 3A Due July14,2015,11:59pm 1 Write a...

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

HOMEWORK 3A Due: July14,2015,11:59pm 1. Write a MATLAB script that computes the correlation coefficient of populations of lynx and hare in one period. Lastweek,weinvestigatedthebehaviorofthreespeciescompetingforthesamefood. As many of you observed, solving this problem without the use of arrays presented challenges. Since the algorithm needed to overwrite the values of x, y, and z at every time step, any calculations or plotting that required access to past data had to occur within the loop itself. This week, we’ll examine how a similar problem can be solved using arrays. UsingthedatacollectedbytheHudson’sBayCompanyfrom1900to1920,thepopulationso fthelynx (predator) and hare (prey) was modeled using Lotka Volterra equation by Dr. Mahaffy ( - rohan.sdsu.edu/˜jmahaffy/courses/f09/math636/lectures/lotka/quald e2. html) : dx dt = 0.4x −0.018xy, dy dt = −0.8y +0.023xy, (1) where x, y are the populations (thousands) of hare and lynx, and t is time in units of years.
Image of page 1
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    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.

    Student Picture

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

  • Left Quote Icon

    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.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    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.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern