How to take the time t of ode to a new variable?
1 次查看(过去 30 天)
显示 更早的评论
Hi,everyone,I have a question to require you, the differential equation is D(X'')+C(X')+G=u,where u is a known nonlinear curve,D,C,G are constant parameters.I use ode to solve the equation,when I use time t to fit u of the equation,I can nearly get the rough answer of X with t. my question is:if I do not fit u of the equation, and set the time interval to get the curve's pot,and solve the equation step by step, for example,I get u curve's pot of the time [0,0.0002,0.0004,0.0006...], and solve the equation step by step,how can i realize the final answer?Look forward to your reply! Thanks very very much!
yours ding
0 个评论
回答(1 个)
Miro
2012-7-17
hi, so as far as i understood you want to minimize the function. So what wou need to do is using the matlab fundtion fminsearch for the function D(X'')+C(X')+G-u=0
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Ordinary Differential Equations 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!