clc
clear all
eta=input('eta=');
syms y(t)
Dy = diff(y);
ode = diff(y,t,2)+(40*eta)*diff(y,t,1)+400*y == 40;%differential
equation%
cond1 = y(0) == 0;%initial conditions%
cond2 = Dy(0) == 0;
conds = [cond1 cond2];
y(t) = dsolve(ode,conds);
t=0:0.01:0.8;
y1=y(t);
plot(t,y1)
hold on
2. Consider a spring-mass-damper system with oh-20 rad/s and K-1k = 0.010 mN that is initially...
Problem Set A Problem 6. (20%) A ordinary differential equation for a mass-damper-spring system is following. The mass m 1, damping coetfic e initial position y(o) O, and the initial velocity i constant k 3 and force 10, all are in appropriate units. Th 1, spring zero, within the time range of O to 20 unit of time, use Matlab find the solution of function y(t)? Hint: you need to convert the 2nd order ODE into two 1st order ODEs....
a can be skipped Consider the following second-order ODE representing a spring-mass-damper system for zero initial conditions (forced response): 2x + 2x + x=u, x(0) = 0, *(0) = 0 where u is the Unit Step Function (of magnitude 1). a. Use MATLAB to obtain an analytical solution x(t) for the differential equation, using the Laplace Transforms approach (do not use DSOLVE). Obtain the analytical expression for x(t). Also obtain a plot of .x(t) (for a simulation of 14 seconds)...
Consider the spring-mass-damper system shown. Assume M-1kg. B - 20 N-s/m, K-25 N/m and f(t) = ON (zero-input case). The initial conditions are: x(O) = 1 m, x(0) = 0 m/s Select the correct plot of "x vs. t" for this zero-input case. They M B 0 0 O O o
(20pts) Consider the vertical spring-mass-damper system shown below, where m 2 kg, b 4 N-s/m, and k 20N/m. Assume that x(0) 0.1 m and (0) 0. The displacement is measured form the equilibrium position. Derive a mathematical model of the system (i.e. an ODE). Then find x(t) as a function of time t.
x(t) y(d) Consider the spring-mass-damper system above travelling along a bumpy surface with a height change. The damping ratio is =0.2, the natural frequency is 3 rad/s, and the mass, m=200 kg. The wheel does not lose contact with the road and the road has the shape, y(d)4sin 0H(d 10) where d is distance in meters, and y(d) is the height in centimeters 1. Write the ordinary differential equation for v-1 m/s and v-5 m/s. 2. The solution of x(t)...
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 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)....