Question: % % Solve the ODE y + c * y ' + omega 0 ^ 2 * y = cos ( omega * t
Solve the ODE ycy omegay cosomegat given y
y;
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.
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
