MATLAB_Heating_Cooling Description and Help

Description:

MATLAB_Heating_Cooling is a graphical user interface (GUI) that plots solutions to Newton’s Law of Heating and Cooling models. The GUI can describe up to two different temperature situations. The GUI assumes a temperature of a body can be modeled by

  ′
T  (t) = k(T(t) - Tm),T (0) = T0
where k,Tm and T0 are real constants. The parameter k represents the proportionality constant, Tm the ambient temperature, and T0 the initial temperature of the body.

To use the GUI, you must input four parameters per situation. They are k,Tm,T0 and a final time in which you would like to know the temperature of the body (labeled as t1 and t2 in the GUI).


PIC

Figure 1: MATLAB_Heating_Cooling


The GUI will output the final population value in either panel ‘Population 1 at T1’ or ‘Population 2 at T2’. Also, a plot of all the population values up to the final time will be displayed.


PIC

Figure 2: Output after clicking Plot


There is a checkbox to plot both populations on the same axis.


PIC

Figure 3: Output after clicking Plot


To reset the GUI, click the ‘Reset’ button.