5 views (last 30 days)

- 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.

Walter Roberson
on 17 Nov 2019

"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)

Sign in to comment.

Sign in to answer this question.

Opportunities for recent engineering grads.

Apply Today
## 2 Comments

## Direct link to this comment

https://au.mathworks.com/matlabcentral/answers/491509-defined-n-with-the-equation#comment_768145

⋮## Direct link to this comment

https://au.mathworks.com/matlabcentral/answers/491509-defined-n-with-the-equation#comment_768145

## Direct link to this comment

https://au.mathworks.com/matlabcentral/answers/491509-defined-n-with-the-equation#comment_768241

⋮## Direct link to this comment

https://au.mathworks.com/matlabcentral/answers/491509-defined-n-with-the-equation#comment_768241

Sign in to comment.