フィルターのクリア

Differential Equation with Coefficients as Integral Functions

2 ビュー (過去 30 日間)
Saeid
Saeid 2018 年 9 月 7 日
編集済み: Torsten 2018 年 9 月 7 日
I would like to solve a differential equation e.g. in the form: y"+f(x)y'=0 where the coefficient function can only be given as an integral and not explicitly.
Can Matlab solve differential equations of this form?

採用された回答

Torsten
Torsten 2018 年 9 月 7 日
編集済み: Torsten 2018 年 9 月 7 日
fun=@(x,y)[y(2);-y(2)*integral(@(z)z.^2+3*z-1,0,x)];
is a suitable function to be used with ODE45, and it represents your differential equation for
f(x) = integral_{z=0}^{z=x} (z^2+3z-1) dz
Best wishes
Torsten.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeOrdinary Differential Equations についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by