hello
here you are ; your "k" is my "b_sol" value :
a_sol = -0.1108
b_sol = -2.1657e-04
c_sol = -9.5151e-04
d_sol = 0.1001
code :
t=[0 500 1000 1500 2000 2500 3000];
CA=[0.1 0.0892 0.0776 0.0705 0.0603 0.0542 0.0471];
x = t;
y = CA;
% exponential fit method
% model : y = a.*(1-exp(b.*(x-c))) + d
f = @(a,b,c,d,x) a.*(1-exp(b.*(x-c))) + d;
obj_fun = @(params) norm(f(params(1), params(2), params(3), params(4),x)-y);
sol = fminsearch(obj_fun, [y(end)-y(1),0,0,y(1)]);
a_sol = sol(1)
b_sol = sol(2)
c_sol = sol(3)
d_sol = sol(4)
y_fit = f(a_sol, b_sol,c_sol ,d_sol, x);
figure
plot(x,y,'r',x,y_fit,'-.k');
legend('data','exp fit');