Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

MatLab math problem Please show show clear solution on MatLab; not Polymath (a)

ID: 2079197 • Letter: M

Question

MatLab math problem

Please show show clear solution on MatLab; not Polymath

(a) are initially 500 rabbits and 200 foxes (y) on Farmer oat's property. Use Polymath or MATLAB to plot the concentration of foxes and rabbits as a function of time for a period of up to 500 days. The predator-prey relationships are given by the following set of coupled ordinary differential equations: kix-k2x.y Constant for growth of rabbits ki 0.02 day Constant for death of rabbits k 0.00004/(day x no. of foxes) Constant for growth of foxes after eating rabbits k3 000024/(day X no. of rabbits) Constant for death of foxes k 0.04 day What do your results look like for the case of k 0.00004/(day x no. of 800 days? Also plot the number of foxes versus the rabbits) and tanal number of rabbits. Explain why the curves look the way they do.

Explanation / Answer

question:2

function F=myfunction(z)
x=z(1);
y=z(2);
F(1)=x.^3*y-4*y.^2+3*x-1;
F(2)=6*y.^2-9*x*y-5;
end

in MATLAB COMMAND WINDOW WRITE

zg=[2;2]

z=fsolve(@myfunction,zg)

z(1)

z(2)

[x,y]=fsolve(@myfunction,zg)