Problem 2: The change of temperature for an object placed in an isothermal chamb
ID: 3770914 • Letter: P
Question
Problem 2: The change of temperature for an object placed in an isothermal chamber may be modeled by the formula T = Ts + (To – Ts)e-kt where T is the temperature of the object at time t, Ts is the temperature of the isothermal chamber, To is the temperature of the object at time t = 0, and k is a rate constant. Suppose a can of soda was removed from a refrigerator at a temperature of 38 degrees and placed in a car sitting in the sun that maintains an interior temperature of 125 degrees. Calculate the temperature of the can of soda from 0 to 3 hours in increments of 0.1 hours to the nearest integer if k is 0.40. Define all the variables then calculate the temperatures. Create a table (do not use table command) with T in the first column and t in in the second problem.
Use matlab for this. I have a data file that works for this so if you could just figure out a solution that would be appricated.
Explanation / Answer
Ts = 125; % Tempeture of the Surrounding
To = 38; % Initial Tempeture of the Can
k = 0.4;
hours = linspace(0,3,30);
T = zeros(1,30);
for i = 1:30
T(:,i) = Ts + (To - Ts)*exp(-k*hours(:,i));
end
% Table with T in the first column and t in in the second problem.
for i = 1:30
fprintf("%f %f ",T(:,i),hours(:,i));
end
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.