LCCDE on Responses with initial conditions set to zero Solve the natural response and total response of the following pr
Posted: Tue Jul 12, 2022 8:29 am
Solutions > Save C Reset MATLAB Documentation ▶ Run Script ?
LCCDE on Responses with initial conditions set to zero 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. All conditions are Zero. d²x +8dx +3x= cos3t+41² d₁² Total Response: TRes Natural Response: NRes Force Response: FRes Script> 1 syms x(t) 2 DX = 3 D2x = 4 % Set condb1 for 1st condition 5 condb1 = % Set condb2 for 2nd condition 7 condb2 = 8 conds = [condb1, condb2]; 9 % Set eq1 for the equation on the left hand side of the given equation 10 eq1 11 % Set eq2 for the equation on the right hand side of the given equation 12 eq2 = 13 eq = eq1==eq2; 14 NRes = 15 TRes= 16 % Set FRes for the Forced Response Equation 17 FRes = My