Question: (e) Are the results affected by changes in the initial conditions? Answer this question both numerically (by modifying the initial conditions in LAB06ex2.m) and theoretically
(e) Are the results affected by changes in the initial conditions? Answer this question both numerically (by modifying the initial conditions in LAB06ex2.m) and theoretically (by analyzing the expression for C in (3)). Note that the initial conditions for the DE are y0 and v0. NOTE: Modify the initial conditions and in LAB06ex2.m and run the file with the new initial conditions. Then answer the following question and justify your answer theoretically (by analyzing the formula for C). Delete this note upon submission. Don't forget to reset the initial conditions to the original values once you are done experiementing. Is the amplitude of the forced oscillation, , affected by the initial conditions?
clear all; % this deletes all variables omega@ = 4; ( = 1} OMEGA = 2:0.01:5; C = zeros (size (OMEGA) ); Ctheory = zeros (size (OMEGA)); to = 0; y0 = 0; v0 = 0; Y0 = [yo; vo]; tf = 60; t1 = 25; for k = 1:length (OMEGA) omega = OMEGA(K); param = [omega0, c, omega]; [t, Y] = ode45 (@f, [to, tf], Ye, , param); i = find(tStep by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
