Question: Matlab help, code want run eval command Calculate and plot the total response of the spring mass damper system with m = 1 0 0

Matlab help, code want run eval command
Calculate and plot the total response of the springmassdamper system with m=100 kg,\zeta =0.1, and k =1000 N>m to the signal defined by
with maximum force of 1 N. Assume that the initial conditions are zero, and let T =2\pi s.
F(t)={4Tt-1,0tT21-4T(t-T2),T2tT
-+22
7 hewm
C2??.2K2
i=0.1.21003*(0)2=63.25
Here is my code:
clc,clear,close all;
m =100;
c =63.25;
k =1000;
T =2*pi;
syms s t
expr1=(exp(-s*t)*((t/T)-1));
expr2=(exp(-s*t)*((1-(1/T)*(t-(T/2)))));
F =(4/(1-exp(-2*pi*s)))*(int(expr1,t,0,pi)+(int(expr2,t,pi,2*pi)));
X = F/(m*s^2+c*s+k);
x = simplify(ilaplace(X));
t =0:0.001:3;
xn = eval(x);
plot(t,xn)
 Matlab help, code want run eval command Calculate and plot the

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!