Question: % % Project Five % [ YOUR NAME ] % [ Any Collaborators ] % % Instructions % RUN THE CODE TO CONFIRM THAT IT
Project Five
YOUR NAME
Any Collaborators
Instructions
RUN THE CODE TO CONFIRM THAT IT WORKS
INCLUDE YOUR ANSWER TO QUESTION AS A COMMENT
ADD AND MODIFY THE CODE WHERE INDICATED
INCLUDE YOUR ANSWER TO QUESTION AS A COMMENT
ADD AND MODIFY THE CODE WHERE INDICATED
INCLUDE YOUR ANSWER TO QUESTION ALONG WITH ANY SUPPORTING MATERIALS,
AS A COMMENT
USE THE Publish TAB TO SAVE YOUR RESULTS AS A PDF
Initialize
These commands clear the workspace and close any figures, to make sure
that previous versions of the code do not effect the current run.
They are not always necessary, and may noticably slow large progams.
clear all;
close all;
Solve the ODE ycy omegay cosomegat given y y
and omega
omega; c ; omega ; define parameters
param omegacomega; convert parameters into form usable by ODE
t; y; v; Yy;v; tf ; define interval and intial
condition
options odesetAbsTole'RelTol',e; adjust toleranceprecision of
ODE
tY ode@fttfYoptions,param;
y Y:; v Y:; y in output has columns corresponding to y and y
figure; starts a new figure
plottyb; graph solution
grid on; display grid
Question
What is the long term behavior of the solution? Be as exact as
possible. You may wish to use the ZOOM feature in the Figures.
INSERT ANSWER HERE
Solve the ODE for omega
INSERT MODIFIED CODE TO GRAPH THE SOLUTION OF THE ODE WITH omega IN
Figure HERE
Question
How has the solution changed? Be as exact as possible. You may wish to
use the ZOOM feature in the Figures.
INSERT ANSWER HERE
Solve the ODE for omega
INSERT MODIFIED CODE TO GRAPH THE SOLUTION OF THE ODE WITH omega IN
Figure HERE
Question
How has the solution changed compared to the previous two solutions?
What do you expect will happen as omega continues to increase? Be as
exact as possible. You may wish to use the ZOOM feature in the Figures.
If you run any simulations to confirm your hypothesis, be sure to include
them in the report.
INSERT ANSWER HERE
Terminate
SOME students running SOME versions on SOME platforms have had issues
with the last table or figure not appearing in the PUBLISH document.
This workaround appears to fix it for most, but be aware and always check
your results before submitting them for grade.
term true;
Functions
function dYdt ftYparam
y Y; v Y;
omega param; c param; omega param;
dYdt v ; cosomegatomegaycv ;
end
answer the questions specific as possible using the results from the graphs produced and also fix the code
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
