Need help with matlab code
4 次查看(过去 30 天)
显示 更早的评论
Need to numerically solve the differential equation below and plot T vs t which goes like radiative cooling curve.
dT/dt= -Q(T^4-T0^4)/3*L*T where T =1000K, T0=300K, Q=1.38e-23 and L=1e-4 m.
Thank you in advance!
0 个评论
采纳的回答
Star Strider
2021-2-2
Tv=1000; % K
T0=300; % K
Q=1.38e-23;
L=1e-4; % m.
syms T(t)
DE = diff(T) == -Q*(Tv^4-T0^4)/3*L*T;
DEs = dsolve(DE, T(0)==T0)
figure
fplot(DEs, [0 1E+16])
grid
xlabel('$t$', 'Interpreter','latex')
ylabel('$T(t)$', 'Interpreter','latex')
title(['$T(t) = ' latex(DEs) '$'], 'Interpreter','latex')
6 个评论
更多回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!