Question: can anyone help me to write down the MATLAB code for given equation using ode 4 5 to get the graphs x 1 vs t

can anyone help me to write down the MATLAB code for given equation using ode45 to get the graphs x1 vs t and x2 vs t?md2x2dt2-k(x1-x2)+chdx2dt=0
dx2dt=v2,dx1dt=v1
t=0,x1=0,x2=0,v2=0
v1=0.01ms,m=1kg,
k=100Nm,c=0.01pa.s
h=0.01m
MATLAB programusing
ode 45 to get the graphs
 can anyone help me to write down the MATLAB code for

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!