Create array tm and Tm corresponding to the midpoints of t and T Temperature steps
6 views (last 30 days)
Show older comments
midpoint function needed for the tm and Tm
2 Comments
Answers (1)
Walter Roberson
on 19 Nov 2019
tm = t(1:end-1) + delt/2
where delt is the vector we discussed in your previous Question.
2 Comments
Walter Roberson
on 19 Nov 2019
delt = diff(t);
delT = diff(T);
tm = t(1:end-1) + delt/2;
tM = T(1:end-1) + delT/2;
See Also
Categories
Find more on Combustion and Turbomachinery 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!