2nd order Differential Equation
Mostra commenti meno recenti
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 Commento
Sam Chak
il 4 Giu 2022
I see x, t, and I.
Please give I in terms of x or t, or both, like I = f(x, t).
Risposte (1)
Sam Chak
il 4 Giu 2022
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)

Categorie
Scopri di più su Mathematics in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!