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!