MATLAB Answers

solve a differential equation at specific points

34 ビュー (過去 30 日間)
Anik Faisal
Anik Faisal 2018 年 10 月 25 日
コメント済み: Anik Faisal 2018 年 10 月 25 日
I have this differential equation (attached .jpg file). I also have the 'gamma', 'u' and 'tau' values (attached unotfinder.m file)
I need to find 'u_0' values that satisfy the equation. Can anyone suggest a way to do this?

  0 件のコメント

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

採用された回答

Erik Keever
Erik Keever 2018 年 10 月 25 日
The equation given, (d gamma / d u)|_{u=u0} = tau, doesn't define a differential equation for gamma, it defines a boundary condition: gamma dot = tau at u=u0.
If you mean you've got discrete lists of [tau_i gamma_i], Matlab's interp1 will create the appearance of a smooth function that can then be used with e.g. fzero to search for the zero.
Matlab's ODE solvers will give output for specific times if you specify them,
[tout, yout] = ode*(odefun, [t0 t1 t2 ... tfinal], y0)
where the vector of t_i are monotonically increasing or decreasing (see doc ode45 for more)

  1 件のコメント

Anik Faisal
Anik Faisal 2018 年 10 月 25 日
thanks!

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

その他の回答 (0 件)

Community Treasure Hunt

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

Start Hunting!

Translated by