Deferential equation in Matlab

4 ビュー (過去 30 日間)
R Hebi
R Hebi 2020 年 12 月 29 日
回答済み: Star Strider 2020 年 12 月 29 日
Hi,
Im wondering how the following differential equation can be entered in in Matlab:
d(rT)/dr = (DP/L) r
My issue is with left hand side.

回答 (1 件)

Star Strider
Star Strider 2020 年 12 月 29 日
It depends on what you want to do, and what the left-hand side actually is. Is the function ‘rT’ or ‘T( r )’?
In the Symbolic Math Toolbox:
syms D L P rT(r)
Eqn = diff(rT) == D*P/L * r;
This assumes that ‘rT’ is a separate function. I have no idea what you are actually doing.
If ‘T’ is the function:
syms D L P r T(r)
Eqn = diff(r*T) == D*P/L * r;
However it may not be possible to integrate it, since the initial condition of ‘T(0)’ implies that ‘r’ is 0 and the integrated differential equation would be infinite at 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