0% found this document useful (0 votes)
62 views1 page

'Emsode' 'R-' On 'Spring-Mass-System': (T, Y) Ode45 Plot (T, y (:,1) ,) Grid Title

The document describes solving the differential equation of a spring-mass system using the ode45 solver in Matlab. The differential equation models a single degree of freedom oscillator with mass m, damping coefficient c, and external force F(t). It is solved over the time interval t = 0 to 10 seconds, with initial conditions of position x(0) = 0 and velocity x'(0) = 0. The solution is plotted.

Uploaded by

smcsaminda
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
62 views1 page

'Emsode' 'R-' On 'Spring-Mass-System': (T, Y) Ode45 Plot (T, y (:,1) ,) Grid Title

The document describes solving the differential equation of a spring-mass system using the ode45 solver in Matlab. The differential equation models a single degree of freedom oscillator with mass m, damping coefficient c, and external force F(t). It is solved over the time interval t = 0 to 10 seconds, with initial conditions of position x(0) = 0 and velocity x'(0) = 0. The solution is plotted.

Uploaded by

smcsaminda
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Spring-Mass-System ODE % % % % % % % % % % % % % % % % % % % % Spring-Mass-System ODE Solution of the differential equation describing the spring-mass-system, a single degree of freedom oszillator,

using Matlab's <b>ode45</b> solver: ODE: mx''(t) = F(t)-c\cdot x(t) { with F(t) = { { 20*t 20*(10-t) 0 t < 5 5 <= t <= 10 t > 10

c = 4.5 * 10^9 / 150^3 m = 5 * 10^3 x(0) = 0 x'(0) = 0 Author : Andreas Klimke Date : 4. July 2002 Version: 1.0

[t,y] = ode45('emsode'); plot(t,y(:,1),'r-'); grid on; title('Spring-Mass-System');

You might also like