Unrecognized function or variable 'Newton_Starbucks'.
1 次查看(过去 30 天)
显示 更早的评论
T0 = 140; %intial temperature of the body
T20 = 80; %temperature of the body after 20 minutes
TR = 22; %temperature of the air
tspan = [0 35]
[t,T] = ode45(@Newton_Starbucks,tspan,T0)
0 个评论
采纳的回答
the cyclist
2023-2-1
I searched the internet for "Newton_Starbucks". The only link I found was this one. If that's relevant, then it seems to me that you need to define
function Tprime=Newton_Starbucks(t,T)
r=.001;
T_ambient=75;
Tprime=-r*(T-T_ambient);
end
and make sure your code can find it.
0 个评论
更多回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!