variable coefficient

4 ビュー (過去 30 日間)
Rose
Rose 2011 年 4 月 23 日
Hi, I have a system of 4 non linear ODEs. I solved them using ode15s and it worked perfectly. But i used constant coefficients at that time. Now I want to do the same thing when the coefficients are variable. Is there any built-in solver for variable coefficients? If yes, then how do i input the coefficients as functions of time? Any guidance/help will be appreciated. thanks!!!!

採用された回答

Matt Tearle
Matt Tearle 2011 年 4 月 23 日
All the solvers can handle variable coefficients - they are completely ignorant of the details of the equations. All they require is a function that returns some f(t,y) (with the dimension of f being the same as the dimension of y).
But perhaps you mean that you want to pass the time-dependent coefficients as parameters?
Can you maybe clarify? Give an example?
  34 件のコメント
Rose
Rose 2011 年 5 月 6 日
I tried y(end,2) but it didn't work!!
Matt Tearle
Matt Tearle 2011 年 5 月 8 日
What do you mean? Error message? Nothing? Unexpected value? Can you do a whos and report the result?

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMathematics についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by