Question: Create a script to calculate rabbit and fox populations based on test case 4 . Case 4 . Adt a grouse population to the model.

Create a script to calculate rabbit and fox populations based on test case 4.
Case 4. Adt a grouse population to the model.
Note on Case 4. Add grouse population
Assume that the grouse play the same role as the rabbits.
Assume that food supply for both rabbits and grouse is unlimited.
Assume that foxes do not prefer one prey over the other.
g(t) : population of grouse
BRG, birth rate of grouse
DRG, death rate of grouse
EFG, effect of fox upon grouse
EGF, effect of grouse upon fox
Calculate the rabbit population (rPop) and fox population ( fPop ) and grouse population ( gPop ) as row vectors.
Plot the rabbit, fox, and grouse populations on a single plot. Include plot formatting (axis labels, legend).
% Below are the parameters for your script.
% Try adjusting the parameters in MATLAB to see if the model behaves as you would predict. The parameters in MATLAB grader are locked.
GRR=0.4; % Growth rate rabbit
EFR=0.032; % Effect of fox on rabbit
GRG=0.4; % Growth rate grouse
EFG=0.032; % Effect of fox on grouse
GRF=-1.0; % Growth rate fox
ERF=0.02; % Effect of rabbit on fox
EGF=0.02; % Effect of grouse on fox
tinit=0.;
tfinal=60.;
delt=0.05;
rinit=35; % initial rabbit pop
ginit=25; % initial grouse pop
finit=20; % initial fox pop
Assessment:
Rabbit population is correct
Fox population is correct
Grouse population is correct
Plot is formatted properly
Create a script to calculate rabbit and fox

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!