% Given data
>>T = [303.0 310.0 314.0 319.0 325.0]; % Temperature in Kelvin
>>k = [0.0053 0.0113 0.0190 0.0365 0.0727]; % Reaction rate
constant in s^-1
% Constants
>>R = 8.314; % Gas constant in J/mol.K
% Linearize data
>>x = 1./T; % 1/T
>>y = log(k); % ln(k)
% Perform linear regression (fit line)
>>p = polyfit(x, y, 1); % p(1) is slope, p(2) is intercept
% Extract activation energy E
>>slope = p(1);
>>E = -slope * R; % Activation energy in J/mol
% Calculate A (frequency factor)
>>A = exp(p(2));
% Calculate k at T = 305 K
>>T_new = 305; % K
>>k_305 = A * exp(-E/(R*T_new));
% Display results
>>fprintf('Activation Energy (E): %.2f J/mol\n', E);
>>fprintf('Frequency Factor (A): %.3e s^-1\n', A);
>>fprintf('Reaction constant at 305 K (k_305): %.5f s^-1\n',
k_305);
% Optional: Plot ln(k) vs 1/T
>>figure;
>>plot(x, y, 'o', 'MarkerFaceColor', 'b'); hold on;
>>plot(x, polyval(p, x), '-r');
>>xlabel('1/T (1/K)');
>>ylabel('ln(k)');
>>title('Arrhenius Plot');
>>legend('Data', 'Linear Fit');
>>grid on;
Activation Energy (E): 98674.96 J/mol
Frequency Factor (A): 5.133e+14 s^-1
Reaction constant at 305 K (k_305): 0.00647 s^-1