Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Please Answer in matlab code and he mathlab image.. Solving ODE The motion of a damped spring-mass system is described by the following ordinary differential
Please Answer in matlab code and he mathlab image..
Solving ODE The motion of a damped spring-mass system is described by the following ordinary differential equation: dt dt where X displacement from equilibrium position, ttime, m-20 kg is the mass, k-20 N/m is the spring constant, c the damping coefficient. The damping coefficient C takes on three values of 5 (underdamped), 40 (critically damped), and 200 (overdamped). The initial velocity is zero, and the initial displacement X=1 m. 1. Develop an M-file to solve this equation using a numerical method (choose any method you prefer most) over the time period 03ts 15 s 2. Plot the displacement versus time for each of the three values of the damping coefficient on the same plot. Notes: Your assignment must be in matlab m-file dan matlab figure file formatStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started