Could anyone give an idea to write code to solve below problem
显示 更早的评论
Tc(1)=?
for i=1:N
Tc(i+1)=(mc*cpc*Tc(i)*1000-q(i))/(1000*mc*cpc);
end
%%%%mc, cpc are constant, q(i) is variable.
I need to find out the temperature of Tc(1) to get the temperature Tc(N)=15C.
采纳的回答
更多回答(1 个)
Walter Roberson
2017-4-11
The solution is
TC(1) = 15 + sum(q(2:N)) / (1000*mc*cpc)
类别
在 帮助中心 和 File Exchange 中查找有关 MATLAB 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!