How to solve ODEs that are a function of the derivatives of the state variables
显示 更早的评论
I don't know how to properly ask this question. Let me try to explain it.
Typical coupled ODEs:
y'(1) = function(state variables)
y'(2) = function(state variables)
y'(3) = etc ...
Can I solve ODEs in MATLAB that look like this?:
y'(1) = function(state variable,y'(x))
y'(2) = function(state variables,y'(x))
y'(3) = etc ...
basically I am asking if you can have y primes' on the right side of the equal sign.
(Edit 3/1/2011) example:
- rho' = f(rho,A,u,u')
- u' = f(rho,u,P')
- h' = f(u, u')
- P' = f(alpha,T',T,rho',rho)
- T' = f(alpha,h')
- alpha'= f(T,rho',rho,alpha)
It is not possible to write the primes' in terms of state variables only. Can MATLAB solve these type of equations? Is there a similar function to Mathematica's NDSolve[]?
2 个评论
Matt Tearle
2011-2-25
The notation is a bit confusing. Can you give a small example. I think the answer is "yes", but an example would help show how (as well as understand the question correctly)
Jesse
2011-3-1
采纳的回答
更多回答(1 个)
Jesse
2011-3-2
2 个评论
Jesse
2011-3-2
Matt Tearle
2011-3-2
Thanks for posting that, for the benefit of others. I'd call that an example of "doing the right thing"
(http://www.mathworks.com/company/aboutus/mission_values/)
类别
在 帮助中心 和 File Exchange 中查找有关 Ordinary Differential Equations 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!