Question: syms x ( t ) ; M = 2 2 ; C = 5 3 ; K = 6 7 8 9 ; x 0
syms xt;
M ;
C ;
K ;
x;
v;
ode diffx tCMdiffx tKMx ;
Dx diffx t;
cond x x;
cond Dx v;
xSol dsolveode cond cond;
xSolfunc matlabFunctionxSol;
time linspace;
displacement xSolfunctime;
figure;
plottime displacement;
titleSystem Response Due to Initial Conditions';
xlabelTime s;
ylabelDisplacement m;
grid on;
Please tell me if this code is coorect to run. I have hard time running it
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
