MATLAB Heating Cooling Revisited Help

MATLAB_Heating_Cooling_Revisited is a graphical user interface (GUI) that corresponds to the Heating-Cooling model given by

(     ′
|||   TR (t) = k1TR(t) + k2TP(t) - k3Tm (t)
|||   T ′(t) = k4TR(t) + k5TP(t) - k6Tm (t)
||{    P′
    Tm (t) = k7Tm(t)
||   TR (0 ) = T0
|||
|||(   TP (0) = T1
    Tm (0) = T2

where TR(t) and TP (t) represent the temperature of the roast and potato respectively at time t minutes. The ambient room temperature in the room at time t minutes is given by Tm(t). T0,T1 and T2 are the initial temperatures of the roast, potato and the room respectively and the parameters k1,k2,…,k7 are positive proportionality constants from Newton’s Law of Heating and Cooling.

To use the GUI, you must input the seven proportionality constants, the three initial temperatures and the total amount of time you will be monitoring the temperatures of the roast, the potato and the room.


PIC

Figure 1: MATLAB Heating Cooling-Revisited GUI


To input any of the 11 model parameters, simply click on a particular parameter box and highlight the parameter name.

Replace the highlighted parameter name with a positive, real constant.


PIC

Figure 2: Input all 11 parameters before clicking ‘Solve’


Once the inputs have been made, click on the ‘Solve’ button in order to see a plot of the solution to the model.


PIC

Figure 3: Plot of the solution to the model


Changes to one or all of the parameters can be made by replacing a desired parameter value with another. To reset the GUI, click the ‘Reset’ button.