MATLAB REQUIRED FOR CODING. PLEASE FOLLOW INSTRUCTIONS. THANK YOU. If a hot liqu
ID: 981692 • Letter: M
Question
MATLAB REQUIRED FOR CODING. PLEASE FOLLOW INSTRUCTIONS. THANK YOU.
If a hot liquid in a container is left to cool, its temperature will gradually approach room temperature. The temperature of the liquid is expected to ofllow the mathematical model T = A + Be^mt. Plot the data points along with the mathematical model & include labels & title. Use fplot to plot the function, and plot ofr the data points. Save the output as a PDF file & upload along with the M-file. A = 30C, B = 40C, m = -0.276min^-1Explanation / Answer
A=30;
B=40;
m= -0.276;
fplot( 'A+B*exp(-m*x) ', [0 100], title('Temperature vs Time'), xlabel('Time (min)'), ylabel('Temperature ( degree C)'));
t = [0.5 3 7 11 15];
temp= [85 48 35 33 31];
figure
plot( t, temp, title('Temperature vs Time'), xlabel('Time'), ylabel('Temperature ( degree C)'));
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.