I just need the last part. T_3min
Code:
clc
clear
t = [0 30 60 150 240];
T = [800 457 269 79 46];
tq = 0:240;
pa = polyfit(t, T, 3);
Ta = polyval(pa, tq);
Tb = interp1(t, T, tq, 'pchip');
Tc = interp1(t, T, tq, 'spline');
plot(t, T, 'ro');
hold on
grid on
plot(tq, Ta, '-b');
plot(tq, Tb, '--m');
plot(tq, Tc, '-.k');
legend('data', '3 degree polynomial', 'piecewise cubic',
'not-a-knot');
xlabel('time(sec)');
ylabel('Temp(C)');
%% clearly from the graph not-a-knot predict best
disp("Temp after 3 min:")
disp(Tc(find(tq == 180)))
Output:
Temp after 3 min:
72.8395
>>
I just need the last part. T_3min HW7_3 Ball bearings are hardened through a process known...
Ball bearings are hardened through a process of heating and then rapid cooling. The temperature of the ball during this process can be estimated using the equation: T(t) = (ti-to)*e^(-t/T)+to where ti = initial ball temp = 800 degrees celcius to = initial oil temp = 40 degrees celcius t = time = 0-180 seconds at 1 second intervals T = time contraint Create a graph in matlab showing ball temperature versus time. the graph should have 3...