Considerthe forced, damped oscillator y″+0.05y′+36y = sin 63t, with initial conditions y(0) = 5, y′(0) = 0. Use the technique of Example 4 to transform the equation to system of first order ODEs, write and save the odefile as osc.m, and solve the system with the command [t,x] = ode45(@osc, [0,100], [5;0]);.
a) The command plot3 (x(:, 1), x(:, 2), t) provides a three dimensional plot with time on the vertical axis.
b) The command close all, comet3(x(: ,1), x(:, 2), t) provides an animated view of the result in part a).
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.