I'm new to Matlab and trying to solve the Newton cooling DEQ
with ODE23
, actually a simplified version of it. I am not sure how to input the function into the ODE function.
I have T_s = 19, T_c = 84
, and r = 0.025
elapsing from [0, 300] seconds
.
The equation is (dT_c)/dt = -r(T_c - T_s)
Can anyone help me use the linked function to solve this DEQ?