Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Instructions Perform the following task and report them in accordance to the What to Submit section: 1 . Modify the code below so that creates
Instructions
Perform the following task and report them in accordance to the What to Submit section:
Modify the code below so that creates Figure exactly as it appears.
Note that in this case K and r
The solution to the logistic equation P rP PK can be written as
PPtt KKPPeerrrr
KK PPeerrrr
State eg type the Logistic differential equation describing the dynamics of a Population P that
varies in time t with a growth rate r and carrying capacity K State its classification.
The parts in the code that need to be changed are highlighted in yellow.
What To Submit
In MOER you will upload a pdf file and m MATLAB script. The report must include the following:
A title with the name of the Project, followed by your first and last name and MEID.
The recreated image with a caption.
All MATLAB created figures can be easily copied and pasted in a Word document. Do not use
screenshots for this task! Every figure will need to have a label eg Figure and a caption
explaining what is shown in the figure.
Page
Phoenix College Syllabus
Upload the m file that you created. The name that you need to use is FirstLastSlopem It
should be one file. The one when run produces the slope field and solution overlayed to it
Figure : This is the slope field for the given logistic equation that needs to be recreated exactly.
Rubric
Section Details Points
Image Matches the one given
m file The submitted file runs and recreates the
image
FormattingReporting
Followed the assignments requirements
with reporting needs, naming, and file
formats.
Total
Page
Phoenix College Syllabus
Code To Be Modified
Code for Logistic Slope Field with Solutions.
r; growth rate
K; Carrying capacity
t::; vector for time
Define the values of x and y that we will use to create the slope field
We use tS and pS to identify the values of time and population
to be used for slope field.
tS pS meshgrid;
Define the values of the slope p
s ;
The following line is needed to find the size of each vector s so
that we can scale all of the arrows to have the same magnitude
L sqrt s;
figure
hold on this command tell MATLAB to draw everything on the current figure
quivertSpSLsL axis tight
xlabeltime;
ylabelpopulation;
titleDirection field for dpdt rppK;
The nex part adds the solution curves to the slope field
there are meaningful cases which we will draw in red, green, magenta
p;
p;
plottpg
pK;
p;
plottpr
p;
p;
plottpm
hold off this command tell MATLAB to stop drawing on figureInstructions
Perform the following task and report them in accordance to the What to Submit section:
Modify the code below so that creates Figure exactly as it appears.
Note that in this case K and r
The solution to the logistic equation P rP PK can be written as
PPtt KKPPeerrrr
KK PPeerrrr
State eg type the Logistic differential equation describing the dynamics of a Population P that
varies in time t with a growth rate r and carrying capacity K State its classification.
The parts in the code that need to be changed are highlighted in yellow.
What To Submit
In MOER you will upload a pdf file and m MATLAB script. The report must include the following:
A title with the name of the Project, followed by your first and last name and MEID.
The recreated image with a caption.
All MATLAB created figures can be easily copied and pasted in a Word document. Do not use
screenshots for this task! Every figure will need to have a label eg Figure and a caption
explaining what is shown in the figure.
Page
Phoenix College Syllabus
Upload the m file that you created. The name that you need to use is FirstLastSlopem It
should be one file. The one when run produces the slope field and solution overlayed to it
Figure : This is the slope field for the given logistic equation that needs to be recreated exactly.
Rubric
Section Details Points
Image Matches the one given
m file The submitted file runs and recreates the
image
FormattingReporting
Followed the assignments requirements
with reporting needs, naming, and file
formats.
Total
Page
Phoenix College Syllabus
Code To Be Modified
Code for Logistic Slope Field with Solutions.
r; growth rate
K; Carrying capacity
t::; vector for time
Define the values of x and y that we will use to create the slope field
We use tS and pS to identify the values of time and population
to be used for slope field.
tS pS meshgrid;
Define the values of the slope p
s ;
The following line is needed to find the size of each vector s so
that we can scale all o
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