フィルターのクリア

area of 10m2 .overa 0.05 − −t 0.000018t^2

1 回表示 (過去 30 日間)
Su  Çiftçi
Su Çiftçi 2021 年 12 月 30 日
編集済み: Su Çiftçi 2021 年 12 月 30 日
function dTdt=f(t,T)
dTdt=(10000-0.05*t-0.000018*t^2)-(1010)*(T-(25-0.0003*t))+(0.20*4180)*(40-T)/(250*4180);
Error in dTdt (line 2)
clc
clear
[t,T]=ode45(@dtdT,[0 3600],(40));
plot(t,T,'-')
xlabel('Time (s)')
ylabel('Temperature (oC)')
Error in timetemp (line 3)
[t,T]=ode45(@dtdT,[0 3600],(40));

回答 (1 件)

Chunru
Chunru 2021 年 12 月 30 日
% The function name is "f" not "dtdT"
[t,T]=ode45(@f,[0 3600],(40));
plot(t,T,'-')
xlabel('Time (s)')
ylabel('Temperature (oC)')
function dTdt=f(t,T)
dTdt=(10000-0.05*t-0.000018*t^2)-(1010)*(T-(25-0.0003*t))+(0.20*4180)*(40-T)/(250*4180);
end

カテゴリ

Help Center および File ExchangeGet Started with MATLAB についてさらに検索

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by