Answered step by step
Verified Expert Solution
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:
round
round
where where and are the changes in number of rabbits and foxes by the end of that year; and and 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 animals of a kind, the scientists transfer rabbits andor foxes to make sure there are at
least of each kind.
Write a function rabbitsandfoxesconservation that takes the number of rabbits and foxes at
the end of the first year, and simulates the populations up to years. Your function should return a matrix that has
rows and 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 should be same as
In addition to returning the matrix 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.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started