Matblab/Numerical analysis
The temperature T of a small copper sphere cooling in air is measured as a function of time t to yield the following:
t(s) |
0.2 |
0.6 |
1.0 |
1.8 |
2.0 |
3.0 |
5.0 |
6,0 |
8.0 |
T(C) |
146.0 |
129.5 |
114.8 |
90.3 |
85.1 |
63.0 |
34.6 |
25.6 |
14.1 |
An exponential temperature decrease is expected from theoretical considerations. Using linear regression, obtain the exponent c and the constant C, where T=Ce^(-ct) represents the variation. Also, solve this problem using the polyfit function in MATLAB.