Solving first order differential equation
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
How is it possible to solve the following differential eqiuation using syms and dsolve? I'm quite confused on how to solve dx/dx on matlab. The condition is x(0)=4. Any help would be greatly appreciated.
2 comentarios
James Tursa
el 12 de Abr. de 2021
Editada: James Tursa
el 12 de Abr. de 2021
Double check your assignment. That is probably supposed to be dx/dt, not dx/dx.
Respuestas (1)
Abhishek Gupta
el 15 de Abr. de 2021
Editada: Abhishek Gupta
el 15 de Abr. de 2021
Hi,
You can solve the given ODE as follows: -
syms x(t);
ode = 2*diff(x,t) + 7*x == t;
cond = x(0) == 4;
xSol(t) = dsolve(ode,cond);
For more details, check out the following documentation link: -
0 comentarios
Ver también
Categorías
Más información sobre Particle & Nuclear Physics en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!