Matlab Question ( Temperature Calculation )

An object with an initial temperature of To that is placed at time t=0 inside a chamber that has a constant temperature of Ts, will experience a temperature change according to the equation:
T = Ts + (To - Ts) e -kt
where T is the temperature of the object at time t (in hour), and k is a constant.  A soda can at a temperature of 1200 F (was left n the car) is placed inside a refrigerator where the temperature is 380 F.  Determine the temperature of the can after three hours.  Assume k=0.45.  First, define all the variables and then calculate the temperature using one MATLAB command.

[5 marks]



  1. Thanks for help with the matlab syntax!


Apa komen awak?