How to solve the differential equation numerically
Mostrar comentarios más antiguos
My equation is this:
(-Vs/500)-((6e-10)*diff(Vs,t))+(7/250)+(7.226*Vs*((Vs/1000)+((3e-10)*diff(Vs,t))-7/500)^2)-(3/25000)*(Vs^2)-((4.336e-9)*diff(Vs,t))-(0.014*Vs)-((1.08e5)*((Vs/1000)+((3e-10)*diff(Vs,t))-7/500))+0.2023=0
Vs(0)=7.9
I tried using dsolve but there is no explicit solution. I need solved vector with numerical values for Vs with constant rise in 't'.
Can anyone please help me?
5 comentarios
J. Alex Lee
el 7 de Jun. de 2020
this looks like an ODE, and looks like it may be made explicit in d(Vs)/d(t), but it's hard to tell the way it is written. try to write it out in with your numeric parameters replaced by some symbols and do some algebra to figure it out. even if it turns out to be implicit, some of the matlab ode solvers can handle it.
James Tursa
el 8 de Jun. de 2020
Please show us the differential equation you are trying to solve.
Saurav
el 9 de Jun. de 2020
Saurav
el 9 de Jun. de 2020
J. Alex Lee
el 9 de Jun. de 2020
By "no explicit solution" I think you mean "no analytical solution".
If diff(Vs(t),t) means
and that is the only differential term, your equation still looks "explicit in
", which means you can put your equation in the form

rather than how you have it. I'm not going to go through your equation term by term to verify, you should do so yourself.
Then, you should be able to follow Asvin's advice to look at examples of how to solve that class of problems using ode45.
If your problem is truly "implicit" in
, then look at https://www.mathworks.com/help/matlab/math/choose-an-ode-solver.html under "Types of ODEs" near the top
Respuesta aceptada
Más respuestas (1)
madhan ravi
el 9 de Jun. de 2020
0 votos
Categorías
Más información sobre Ordinary Differential Equations en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!