Question: LAB 0 6 ex 1 . m clear all; % this deletes all variables omega = 3 ; c = 2 ; omega = 3

LAB06ex1.m
clear all; %this deletes all variables
omega =3;c=2; omega =3.6;
param =[omega0, c,omega];
t0=0;y0=0;v0=0;Y0=[y0;v0];tf=40;
options = odeset('AbsTol',1e-10, 'relTol', 1e-10;
, options, param );
y=Y(:,1);,v=Y(:,2);
figure (1)
plot(t,y,'b-'); ylabel('y'); grid on;
t1=13;i= find (t>t1);
C=max(Y(i,1))-min(Y(i,1))2;
disp(['computed amplitude of forced oscillation =', num2str(C)]);
Ctheory omega02

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!