Matlab Exercise 1.1 Help

Description:

Matlab Exercise 1.1 refers to the initial value problem (1.5) from the text, that is,

(     ′
|||   TR′(t) = k1TR(t) + k2TP(t) - k3Tm (t)
||||   TP (t) = k4TR(t) + k5TP(t) - k6Tm (t)
|{   T ′(t) = k T (t)
     m        7 m
|||   TR (0 ) = T0
|||   T  (0) = T
||(    P        1
    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. This graphical user interface (GUI) is to be used to answer the questions in Matlab Exercise 1.1.
Instructions:

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. To input any of the 11 model parameters, simply click on a particular parameter box and highlight the parameter name.


PIC

Figure 1: Highlight the parameter name, then delete it


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


PIC

Figure 2: Highlight the parameter name, then delete it


Once the inputs have been made,


PIC

Figure 3: All parameters have been defined


click on the ‘Solve’ button in order to see a plot of the solution to IVP (1.5).


PIC

Figure 4: The plot of the solution


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