Borrar filtros
Borrar filtros

Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

Question about Second-order ODE.

1 visualización (últimos 30 días)
Yusuke Nakamura
Yusuke Nakamura el 26 de Abr. de 2015
Cerrada: MATLAB Answer Bot el 20 de Ag. de 2021
Q. A mass-spring-damper system is to be modeled to determine behavior of the system. The damping is modeling using a non-linear damping term. The resulting differential equation is given by: x''+4*x'+2.5*x = 0
The mass is released from rest with a displacement of x(t=0) = +2. What is the velocity at t = 5?
My code is:
function dx = dx(t,x)
dx = [x(2); -2.5*x(1)-4*x(2)];
and
[t,x] = ode45(@dx,[0 5],[2 0],0.005);
x = x(end,2)
Then I got x(t=5) = -0.0423
The answer should be 0.213. How could I get this answer?
  1 comentario
Star Strider
Star Strider el 26 de Abr. de 2015
The problem could be in the absence of the ‘non-linear damping term’ because (unless I’m missing something) I see only a linear second-order differential equation.

Respuestas (0)

La pregunta está cerrada.

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by