124 Green Chemical Engineering
3 3.0 ;
4 2.8 ;
5 2.6 ;
6 2.4 ;
7 2.3 ;
8 2.2 ;
9 2.1 ;
10 2.0 ] ;
reaction_type = 5 ; % 0 - zero order irreversible - (-ra) = k
% 1 - first order irreversible - (-ra) = k*Ca
% 2 - second order irreversible - (-ra) = k*Ca
∧
2
% 3 - third order irreversible - (-ra) = k*Ca
∧
3
% 4 - second order irreversible - (-ra) = k*Ca*Cb
% 5 - first order reversible - (-ra) = k′*(Ca-Cae)
% fitting the data to the reaction type
fit_well = 1 ; % 0 - enter 0 if the reaction type does not fit the data well
% 1 - enter 1 if the reaction type fits the data well
% CALCULATIONS
%_________________________________________________________________
vec_size = size(ca_t_data) ;
n = vec_size(1,1) ;% number of readings
for i = 1:n
t_val = ca_t_data(i,1) ...