Engineering Homework Help. Matlab- Write a MATLAB program to Plot the curves ( x(t) versus t ) and ( y(t)
Consider the mechanical system shown in the figure below:
Assume that: m=1 kg, M=2 kg , k1=10 N/m and k2=40 N/m
Write a MATLAB program to Plot the curves ( x(t) versus t ) and ( y(t) versus t ) for each of the three sets of initial and plot the curves and obtain a computer solution for x(t) and y(t).
Initial conditions:
1) x(0)= 0.1 m ẋ(0) = 0 m/s y(0)= -0.1 m ẏ(0) = 0 m/s
2) x(0)= 0.017 m ẋ(0) = 0 m/s y(0)= -0.1 m ẏ(0) = 0 m/s
3) x(0)= 0.028 m ẋ(0) = 0 m/s y(0)= 0.1 m ẏ(0) = 0 m/s
Additionally determine the natural frequencies and modes of vibration