Hi, I'm having trouble solving a non-liner 2nd order ODE, could someone help me? I'm not able to assemble the code.
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Pedro Augusto Dias Rodrigues
am 3 Jul. 2021
Kommentiert: Pedro Augusto Dias Rodrigues
am 4 Jul. 2021
0 Kommentare
Akzeptierte Antwort
Peter O
am 4 Jul. 2021
Ah, this is a nice heat transfer homework problem! The function you're looking for in MATLAB for coding up the solution is called ode45.
The help file documentation here should help you set up the equations you need: https://www.mathworks.com/help/matlab/ref/ode45.html. Pay close attention to the section entitled "Pass Extra Parameters to ODE function" to see how to handle the second order derivative. One of the "fun" revelations of calculus is that a function has a first-order derivative, and that derivative can be treated as a first-order function itself that has a derivative (which is the second-order derivative to the first).
Let us know if you have further issues writing the code and we can help you troubleshoot.
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Ordinary Differential Equations finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!