Asked by Abdulrahman Al Baalharith
on 17 Nov 2019 at 4:03

- 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
님의 답변 17 Nov 2019 21:39

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

Opportunities for recent engineering grads.

Apply Today
## 2 Comments

## KALYAN ACHARJYA (view profile)

## 이 댓글에 대한 바로 가기 링크

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

## Abdulrahman Al Baalharith (view profile)

## 이 댓글에 대한 바로 가기 링크

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

Sign in to comment.