defined n with the equation
4 views (last 30 days)
Show older comments
- 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 Comments
Answers (2)
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)
0 Comments
See Also
Categories
Find more on Workspace Variables and MAT-Files in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!