Question
using matlab help to answer #2 please show steps in creating code

2. The energy of the mass-spring system is given by the sum of the kinetic energy and the potential energy. In the absence of


LAB05exla.m clear all; m-1; % mass [kg] k=4; % spring constant [N/m] c-1; % friction coefficient [Ns/m] omega0sqrt (k/m) pc/(
2. The energy of the mass-spring system is given by the sum of the kinetic energy and the potential energy. In the absence of damping, the energy is conserved (a) Add commands to LAB05ex1 to compute and plot the quantity E-m k2 as a function of time. What do you observe? (pay close attention to the y-axis scale and, if necessary, use ylim to get a better graph). Ilude at least one plot. Does the graph confirm the fact that the energy is conserved? (b) Show analytically that = 0. (Note that this proves that the energy is constant) (c) Add commands to LABO5ex1 to plot v vs y (phase plot). Include the plot. Does the curve ever get close to the origin? Why or why not? What does that mean for the mass-spring system? Mass-Spring System with Damping When the movement of the mass is damped due to viscous effects (e.g., the mass moves in a cylinder containing oil, situation (d) an additional term proportional to the velocity must be THIS CONTENT IS PROTECTED AND MAY NOT BE SHARED, UPLOADED, SOLD OR DISTRIBUTED 2019 vS Copyrighto School of Mathematical and Statist cal Sciences, Ariaona State University added. The resulting equation becomes by setting pThe program LABO5ex1 is updated by modifying the function f. Here we set c= 1 .
LAB05exla.m clear all; m-1; % mass [kg] k=4; % spring constant [N/m] c-1; % friction coefficient [Ns/m] omega0sqrt (k/m) pc/(2*m); у0--0 . 8 ; v0--0.3; % initial conditions [t,Y] = ode45 (0f, [0,10], [yo,vo],[], omegao, p); % solve for 0
0 0
Add a comment Improve this question Transcribed image text
Answer #1

Please find attached the copy of the matlab script LAB05ex1a.m below with parts (a) and (c) completed in the script along with the plots.


(a) On line 9 added Command 2 On line 1o appended the plot comno with theollbuing parameters t, E, The observaticn is that th dt dt dt Hence proved, (c) On line 15 added the command to plob Figure (2) Plot (y v) the curve hever gets cloce to the origiName 1-clear; close all; clc; 2-m=1; 109xl double omegao 0.5000 109xl double 109x1 double -0.300O 109xl double 109x2 double 01.5 0.5 0.5 51.5 0.5 0.8 0.6 0.8 0.6 0.4 0.2 0.2 0.4 1 1

Add a comment
Know the answer?
Add Answer to:
2. The energy of the mass-spring system is given by the sum of the kinetic energy and the potenti...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Pls, use Mathlab to answer all questions. Thank you. 2. The energy of the mass-spring system...

    Pls, use Mathlab to answer all questions. Thank you. 2. The energy of the mass-spring system is given by the sum of the kinetic energy and the potential energy. In the absence of damping, the energy is conserved mu2ky2 (a) Add commands to LAB05ex1 to compute and plot the quantity E as a function of time. What do you observe? (pay close attention to the y-axis scale and, if necessary, use ylim to get a better graph). Include at least...

  • Problem 2. Recall that any undamped spring-mass system is described by an initial value problem of...

    Problem 2. Recall that any undamped spring-mass system is described by an initial value problem of the form m" + ky= 0, (0) = 0, v(0) = to, where m is the mass and k is the spring constant. Since there is no damping, we would expect that no energy is lost as the mass moves. That is, the total energy (potential plus kinetic) in the system at any time I should equal the initial amount of energy in the...

  • Answer last four questions 1. A spring-mass-damper system has mass of 150 kg, stiffness of 1500...

    Answer last four questions 1. A spring-mass-damper system has mass of 150 kg, stiffness of 1500 N/m and damping coefficient of 200 kg/s. i) Calculate the undamped natural frequency ii) Calculate the damping ratio iii) Calculate the damped natural frequency iv) Is the system overdamped, underdamped or critically damped? v) Does the solution oscillate? The system above is given an initial velocity of 10 mm/s and an initial displacement of -5 mm. vi) Calculate the form of the response and...

  • We are designing a system that is critically damped. Consider a spring mass damper design where...

    We are designing a system that is critically damped. Consider a spring mass damper design where mass is m=1 kg and the system has to be critically damped. If we want y(t)=te-t as the response, determine the damping constant b and spring constant k. Since it is critically damped, also find the two initial conditions that gives the desired response.

  • 6. A mass of 2 kilogram is attached to a spring whose constant is 4 N/m, and the entire system is...

    6. A mass of 2 kilogram is attached to a spring whose constant is 4 N/m, and the entire system is then submerged in a liquid that inparts a damping force equal to 4 tines the instantansous velocity. At t = 0 the mass is released from the equilibrium position with no initial velocity. An external force t)4t-3) is applied. (a) Write (t), the external force, as a piecewise function and sketch its graph b) Write the initial-value problem (c)Solve...

  • I want matlab code. 585 i1 FIGURE P22.15 22.15 The motion of a damped spring-mass system (Fig. P22.15) is de...

    I want matlab code. 585 i1 FIGURE P22.15 22.15 The motion of a damped spring-mass system (Fig. P22.15) is described by the following ordinary differ- ential equation: dx dx in dt2 dt where x displacement from equilibrium position (m), t time (s), m 20-kg mass, and c the damping coefficient (N s/m). The damping coefficient c takes on three values of 5 (underdamped), 40 (critically damped), and 200 (over- damped). The spring constant k-20 N/m. The initial ve- locity is...

  • Solve it with matlab 25.16 The motion of a damped spring-mass system (Fig. P25.16) is described...

    Solve it with matlab 25.16 The motion of a damped spring-mass system (Fig. P25.16) is described by the following ordinary differential equation: d’x dx ++ kx = 0 m dr dt where x = displacement from equilibrium position (m), t = time (s), m 20-kg mass, and c = the damping coefficient (N · s/m). The damping coefficient c takes on three values of 5 (under- damped), 40 (critically damped), and 200 (overdamped). The spring constant k = 20 N/m....

  • Consider a mass-spring-dashpot system in which the mass is m = 4 lb-sec^2/ft, the damping constant...

    Consider a mass-spring-dashpot system in which the mass is m = 4 lb-sec^2/ft, the damping constant is c =24 lb-sec/ft, and the spring constant is k=52lb/ft. The motion is free damped motion and the mass is set in motion with initial position x0=5ft and the initial velocity v0= -7ft/sec. Find the position function x(t) and determine whether the motion is overdamped, critically damped, or underdamped.

  • A car and its suspension system act as a block of mass m= on a vertical spring with k 1.2 x 10 N m, which is damped...

    A car and its suspension system act as a block of mass m= on a vertical spring with k 1.2 x 10 N m, which is damped when moving in the vertical direction by a damping force Famp =-rý, where y is the 1200 kg sitting 4. (a) damping constant. If y is 90% of the critical value; what is the period of vertical oscillation of the car? () by what factor does the oscillation amplitude decrease within one period?...

  • Consider the Spring-Mass-Damper system: 17 →xt) linn M A Falt) Ffl v) Consider the following system...

    Consider the Spring-Mass-Damper system: 17 →xt) linn M A Falt) Ffl v) Consider the following system parameter values: Case 1: m= 7 kg; b = 1 Nsec/m; Fa = 3N; k = 2 N/m; x(0) = 4 m;x_dot(0)=0 m/s Case2:m=30kg;b=1Nsec/m; Fa=3N; k=2N/m;x(0)=2m;x_dot(0)=0m/s Use MATLAB in order to do the following: 1. Solve the system equations numerically (using the ODE45 function). 2. For the two cases, plot the Position x(t) of the mass, on the same graph (include proper titles, axis...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT