- Solve The Natural Response And Total Response Of The Following Problems Using Classical Methods And The Given Initial Co 1 (16.8 KiB) Viewed 61 times
Solve the natural response and total response of the following problems using classical methods and the given initial co
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
Solve the natural response and total response of the following problems using classical methods and the given initial co
Solve the natural response and total response of the following problems using classical methods and the given initial conditions. Using MATLAB Coding. Store your answer in the indicated Variables per problem. ²+2+2x=56 Total Response: TResb Natural Response: NResb Force Response: FResb Script 1 syms x(t) 2 Dx diff(x, t); 3D2x 4 % Set condb1 for 1st condition 5 condb1 = diff(x, t, 2); Se +2 *(0)=2; (0) = 1 6 % Set condb2 for 2nd condition condb2 = scondsb= [condbi, condb2]; 9 % Set eq1 for the equation on the left hand side of the given equation 10 q1 = 11 % Set eq2 for the equation on the right hand side of the given equation 12 q2 = 13 qq1q2; 14 Resb= dsolve(eq1, condsb,t); 15 TResb= dsolue(eq,condsb, t) 16 % Set FResa for the Forced Response Equation 17 FResb= Assessment: Is first condition correct? (Pretest) Test Check whether variable cond b1 has the correct value. Is second condition correct? (Pretest) Test Check whether variable cond b2 has the correct value. Is the differential Equation encoded correctly? (Pretest) Test Check whether variable eq has the correct value. Save Reset MATLAB Documentation Run Pretest ▶Run Script ✪ Submit G