From 2008.igem.org
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
function optimal_parameters = find_f3_EnvZ(X_data, Y_data, initial_parameters)
global beta17 K15 n15;
function output = act_pFlhDC(parameters, X_data)
for k = 1:length(X_data)
OmpR_P = complexes((parameters(1) + X_data(k)),parameters(2),parameters(3),parameters(4));
output(k) = beta17*(1 - hill( OmpR_P, K15, n15 ));
end
end
options=optimset('LevenbergMarquardt','on','TolX',1e-10,'MaxFunEvals',1e10,'TolFun',1e-10,'MaxIter',1e4);
optimal_parameters = lsqcurvefit( @(parameters, X_data) act_pFlhDC(parameters, X_data), ...
initial_parameters, X_data, Y_data, options );
end