defined n with the equation
4 次查看(过去 30 天)
显示 更早的评论
- Create new arrays ‘delt’ and ‘delT’ as the mid-step values computed
from ‘t’ as delt = (t(n)-t(n-1)) and delT = (T(n)-T(n-1)). As a check, delt
will have positive values and delT will be negative values. With
negative delT values, the negative sign in the qm term will be flipped to
a positive one, resulting in positive values for h. ‘n’ is a subscript that
you could use to keep track entries of the time and temperature
arrays.
This what he wrote to us. I think that n = how many row that I have, but how I will write the equation t(n)-t(n-1) because I think he meant that t in row 5 mins t in row 5-1 but I could not figure this out. please help me.
2 个评论
回答(2 个)
Walter Roberson
2019-11-17
"Create as the midstep values are computed" is talking about a for loop with controlling variable n, and for n=2 onwards you calculate those expressions.
As they talk about creating those as arrays there is probably an implied
delt(n-1) = t(n) - t(n-1)
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Workspace Variables and MAT-Files 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!