Solving an ordinary differential equation.

1 回表示 (過去 30 日間)
John Rettig
John Rettig 2021 年 10 月 20 日
編集済み: John Rettig 2021 年 10 月 20 日
plot ode: d^2T/dx^2 - (h/(k*t))*(T1-T0) + q/(k*t)
h=10, k=60, t=0.01, T0=10, T1=10, q=800.

採用された回答

Walter Roberson
Walter Roberson 2021 年 10 月 20 日
Q = @(v) sym(v);
h = Q(10);
k = Q(60);
t = Q(0.01);
T0 = Q(10);
T1 = Q(10);
q = Q(800);
syms T(x)
dT = diff(T);
d2T = diff(dT);
eqn = d2T - (h/(k*t)) * (T0-T1) + q/(k*t)
eqn(x) = 
dsolve(eqn)
ans = 

その他の回答 (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