Question: NOTE: You must use if - else statement Project ( I ) The objective of this project is to implement a MATLAB script that solves

NOTE: You must use if-else statement
Project (I)
The objective of this project is to implement a MATLAB script that solves the differential equation
governing damped harmonic motion for a mass-spring-damper system. The project aims to study
the effects of different equations representing the system under different conditions (you must
use if-else statement).
The 8-kg body is moved 0.2 m to the right of the equilibrium position and released from rest at time
t=0. Using MATLAB, calculate the displacement as a function of time (t=0:0.1:5) for three cases,
c=8,32, and 56N.sm(where c is the damping coefficient). The spring stiffness k is 32Nm.
Case (I) : the system is underdamped c=8
The initial condition: xo=0.2,x=0,C=0.207m,=1.318,d=1.937
Case (II): the system is critically damped c=32
The initial condition: x0=0.2,x=0,A1=0.2m,A2=0.4ms,n=2
Case (III) : the system is overdamped c=56
The initial condition: xo=0.2,x=0,B1=0.222ms,B2=-0.0219ms
NOTE: You must use if - else statement Project (

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 Mechanical Engineering Questions!