# ANSWER WITH MATLAB CODE CAPABLE OF GENERATING PLOT Loops. In the Lotka Volterra predator-prey model,

ANSWER WITH MATLAB CODE CAPABLE OF GENERATING PLOT Loops. In the Lotka Volterra predator-prey model, the changes inthe predator population y and the prey population x are describedby the following equations: Δ
x
t=
x
t+1−
x
t=
a
x
t
b
x
t
y
t Δ
y
t=
y
t+1−
y
t=
c
x
t
y
t
d
y
t Write a function simulatepredatorprey(x,y, a,b,c,d, T) that takesin the initial population sizes of x and y and simulates the modelwith the input parameters, for T discrete time steps (in years),updating the population sizes after each time step. For each timestep, calculate the number of predator & prey from thepopulation sizes of the previous year using the differenceequations above. Your function should return the history of thepopulation sizes as a 2-row matrix (first row containing thehistory of x and second row containing the history of y), startingwith the initial population sizes in the first column, and witheach additional column containing the population sizes of x and yat that time step. Your function should also plot the population the predator and theprey over time. Predator and prey plots should use different lineand marker styles. The axes should be labeled and the figure shouldcontain a legend. Assume the time steps are given in years and thepopulation sizes are given in thousands. >> disp(simulatepredatorprey(10,20, 0.1, 0.01, 0.01, 0.2, 1)) 10 9 20 18>> disp(simulatepredatorprey(10,20, 0.1, 0.01, 0.01, 0.2, 5)) 10.0000 9.0000 8.2800 7.7815 7.4592 7.2791 20.0000 18.0000 16.0200 14.1425 12.4145 10.8576 The image below was generated for a different test case than theones shown above. . . .

#### We are the Best!

##### 275 words per page

You essay will be 275 words per page. Tell your writer how many words you need, or the pages.

##### 12 pt Times New Roman

Unless otherwise stated, we use 12pt Arial/Times New Roman as the font for your paper.

##### Double line spacing

Your essay will have double spaced text. View our sample essays.

##### Any citation style

APA, MLA, Chicago/Turabian, Harvard, our writers are experts at formatting.

Secure Payment