Help please, I cant use Dsolve and dont understand why :(
3 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Sebastian Morales
le 12 Oct 2021
Commenté : Walter Roberson
le 12 Oct 2021
Hi,
I really need help with this error please. I do not know what is causing it, in my opinion I have 4 variables and 4 equations, it should work fine.

Thanks in advance.
2 commentaires
Réponse acceptée
Walter Roberson
le 12 Oct 2021
syms o_r(r) o_t(r) e_r(r) e_t(r)
e_t = o_t - o_r
e_r = o_r - o_t
ode1 = diff(o_r.*r) == o_t
ode2 = diff(e_t.*r) == e_r
temp1 = ode1(r) - o_r(r)
ode1b = lhs(temp1)/r == rhs(temp1)/r
temp2 = simplify(subs(ode2, lhs(ode1b), rhs(ode1b)))
ode2b = simplify((temp2(r) - o_t(r))/r)
odes = [ode1b; ode2b]
sol = dsolve(odes)
4 commentaires
Walter Roberson
le 12 Oct 2021
E=210000;
v=0.4;
syms o_r(r) o_t(r) e_r(r) e_t(r )
eqn1 = e_t == (o_t - v.*o_r)./E
eqn2 = e_r == (o_r - v.*o_t)./E
ode1 = diff(o_r*r) == o_t
ode1b = (ode1 - o_r)/r
ode2 = diff(e_t*r) == e_r
ode2b = (ode2 - e_t)/r
odes = [ode1b; ode2b]
sol = dsolve(odes)
You cannot resolve more than this without additional information that allows e_r and o_t to be defined.
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Numerical Integration and Differential Equations dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!












