2nd order Differential Equation

Hello
i am stuck on this differential equation. Any help if you could
dx2/dt2 = 0.2(1.48 I^2 -1)
I am looking for a code in order to solve this equation, and then generate plot between I and t.
Thank you

1 个评论

I see x, t, and I.
Please give I in terms of x or t, or both, like I = f(x, t).

请先登录,再进行评论。

回答(1 个)

With the limited info, this is a brief example you can explore ode45 (please Google this) and modify the differential equation to suit your needs.
F = @(t, x) [x(2); ...
0.2*(1.48*x(3)^2 - 1); ...
- (125/(74*x(3)))*(0.2*(1.48*x(3)^2 - 1) + x(2))];
tspan = [0 20]; %
init = [1, 0, 0.1];
[t, x] = ode45(F, tspan, init);
plot(t, x(:, 3), 'linewidth', 1.5)

类别

帮助中心File Exchange 中查找有关 Mathematics 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by