Question
a can be skipped
Consider the following second-order ODE representing a spring-mass-damper system for zero initial conditions (forced response
0 0
Add a comment Improve this question Transcribed image text
Answer #1


% SOLVE d2x/dt2 + dx/dt + 0.5* x = unit_step
% initial conditions: x(0) = 0, x'(0)=0

t = 0:0.001:14; % time scale

starting_dxdt = 0;
starting_x = 0;

[t,x]=ode45( @rhs, t, [starting_x starting_dxdt] );

plot(t,x(:,1));
xlabel('t'); ylabel('x');

function dxdt=rhs(t,x)
dxdt_1 = x(2);
dxdt_2 = -x(2) - 0.5*x(1) + heaviside(t);
dxdt=[dxdt_1; dxdt_2];
end

Output

Add a comment
Know the answer?
Add Answer to:
a can be skipped Consider the following second-order ODE representing a spring-mass-damper system for zero initial...
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
  • Consider the following second-order ODE representing a spring-mass-damper system for zero initial...

    Consider the following second-order ODE representing a spring-mass-damper system for zero initial conditions (forced response): where u is the Unit Step Function (of magnitude 1 a. Use MATLAB to obtain an analytical solution x() for the differential equation, using the Laplace Transforms approach (do not use DSOLVE). Obtain the analytical expression for ao. Also obtain a plot of x() (for a simulation of 14 seconds) b. Obtain the Transfer Function representation for the system. c. Use MATLAB to obtain the...

  • Solve the question in Matlab and please show Matlab code Consider a double Spring-Mass-Damper System as...

    Solve the question in Matlab and please show Matlab code Consider a double Spring-Mass-Damper System as shown in the figure below: U >F(t) A. Create a Simulink model to simulate the dynamics of the above system for the following parameter values: F(t) = Step input force of magnitude 5 N ml = 7 kg, b1 = 3 Nsec/m, kl = 4 N/m m2 = 3 kg, b2 = 1 Nsec/m, k2= 2 N/m B. Submit a snapshot of the Simulink...

  • 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...

  • A colleague gave you a Simulink model (figure 5) for a non-linear mass-spring-damper system but f...

    A colleague gave you a Simulink model (figure 5) for a non-linear mass-spring-damper system but forgot to provide yo u with the corresponding equation. (i) Find the non-linear equation of the mass-spring-damper system (ii) Find the equilibrium position (iii Find the Jacobian (linearise the equation about ts equilibrium) (iv) Comment on the stability of the system. (v) Plot the response of the linearised and non-linear model. What is the difference in mag of the non-linear equation. nitude between the linear...

  • Problem 1. Consider the following mass, spring, and damper system. Let the force F be the...

    Problem 1. Consider the following mass, spring, and damper system. Let the force F be the input and the position x be the output. M-1 kg b- 10 N s/m k 20 N/nm F = 1 N when t>=0 PART UNIT FEEDBACK CONTROL SYSTEM 5) Construct a unit feedback control for the mass-spring-damper system 6) Draw the block diagram of the unit feedback control system 7) Find the Transfer Function of the closed-loop (CL) system 8) Find and plot the...

  • 4. Consider the mechanical system shown below with a spring with stiffness, k (N/m), in parallel...

    4. Consider the mechanical system shown below with a spring with stiffness, k (N/m), in parallel with a viscous damper with coefficient, h (Nós/m) and an externally applied force, Fexi(t) (N). u(t) a. Find the equation that relates the applied force, Fext(t) and the displacement, u(t). b. If the spring component has a stiffness of k = 75 N/m, the damper component has coefficient h = 50 N s/m and the externally applied force is a constant 4.5 N applied...

  • Problem Set A Problem 6. (20%) A ordinary differential equation for a mass-damper-spring system is following....

    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....

  • Matlab Homework #4: Matlab Linear Systems Simulation 1.) Obtain the differential equation for the...

    Matlab Homework #4: Matlab Linear Systems Simulation 1.) Obtain the differential equation for the mechanical system shown below bi FLR) orce CN) voltege ) 2.) Obtain the differential equation for the electrical system shown below shown below OAF 3.) Find the transfer functions corresponding to the differential equations found in questions I and 2 the 4) Let the input force applied to the block of the mechanical system be zero U)-のThe initial conditions are y(0) = 10 cm and dy(0)d-0....

  • A mass of 50kg is hung from a spring of stiffness ?=?.?×105 (?/? ) and damper...

    A mass of 50kg is hung from a spring of stiffness ?=?.?×105 (?/? ) and damper ?=100 ?.?/? , which is attached to two aluminum beams with ?=71×109 (Pa), moment of inertia ?=?.?×10−? (??), and length of 255 (mm ). The beam is supported at its free end. Determine: (a) Equivalent stiffness and equation of motion of the system. (b) Damped natural frequency of the system (??) in (Hz). (c) Free vibration response of the system in time domain,?(?), when...

  • Problem 11: a. Use the Laplace approach in order to obtain the analytical solutions x(t) for...

    Problem 11: a. Use the Laplace approach in order to obtain the analytical solutions x(t) for the following Differential Equations using MATLAB (don't use DSOLVE): , Diff. Eqn. 1: * + 2x + 10x - Diff. Eqn. 2: 2x + 7* + 3x -0, *(0) - 0, X(0) - 3, *(0) - 0 4(0)-0

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