Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

USE MATLAB In a hypothetical study of population dynamics, scientists have been tracking the number of rabbits and foxes on an island. The number of

USE MATLAB In a hypothetical study of population dynamics, scientists have been tracking the number of rabbits and foxes on an
island. The number of rabbits and foxes are determined once a year using high resolution infrared cameras and advanced
computer vision methods.
Each year, the number of rabbits and foxes are found to change by the following equations:
R=round(kr**R-krf**R**F)
F=round(-kf**F+kfr**R**F)
where where r and f are the changes in number of rabbits and foxes by the end of that year; and R and F are the
population sizes at the end of the previous year. kr, krf, kf, kfr are coefficients that depend on the species of rabbits and
foxes.
With these dynamics, the scientists realize that one or both species can become extinct on the island. At the end of each
year, if there are fewer than 2 animals of a kind, the scientists transfer rabbits and/or foxes to make sure there are at
least 2 of each kind.
Write a function rabbitsandfoxes_conservation(R,F,kr,krf,kfr,kf,T) that takes the number of rabbits and foxes at
the end of the first year, and simulates the populations up to T years. Your function should return a matrix M that has T
rows and 2 columns, with first column containing number of rabbits each year, and the second column containing number
of foxes each year. First row of the matrix M should be same as R,F.
In addition to returning the matrix M, your function should plot on a single figure, the population sizes of the rabbits and
foxes over T years, each shown as a line plot. Your figure should have a title, axis labels, and a legend indicating which
plot is which species.
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Time Series Databases New Ways To Store And Access Data

Authors: Ted Dunning, Ellen Friedman

1st Edition

1491914726, 978-1491914724

More Books

Students also viewed these Databases questions

Question

c. What groups were least represented? Why do you think this is so?

Answered: 1 week ago

Question

7. Describe phases of multicultural identity development.

Answered: 1 week ago