in.ns = 20;
in.ra = 0.2;
in.kd = 1e-2;
in.tp = 1e-4;
global TOTALPROTEIN VOLUME0 DELTAVOL
TOTALPROTEIN = in.tp;
VOLUME0=500;
in.vs = 10;
in.ml = 1e-3;
DELTAVOL = 20;
[zsim, fm] = simshifttitr(in);
zs2 = zsim;
plot(zs2);
xdata = in.ml.*[1:in.vs] ;
x0= [ 0, 2*max(zs2)];
[x,r] = lsqcurvefit(@kdfuntitr , x0 , xdata, zs2 );
disp('outputs');
disp( x);
disp('deviations');
disp( x - [in.kd fm']);
Local minimum possible.
lsqcurvefit stopped because the final change in the sum of squares relative to
its initial value is less than the default value of the function tolerance.
outputs
Columns 1 through 7
0.0100 0.1671 0.1671 0.0100 0.1092 0.1886 0.0643
Columns 8 through 14
0.1613 0.1203 0.1579 0.1598 0.0099 0.0566 0.1307
Columns 15 through 21
0.0979 0.1946 0.1497 0.1136 0.0598 0.0512 0.1773
deviations
1.0e-006 *
Columns 1 through 7
-0.0330 -0.3427 -0.3428 -0.0204 -0.2239 -0.3869 -0.1319
Columns 8 through 14
-0.3308 -0.2467 -0.3239 -0.3278 -0.0203 -0.1162 -0.2680
Columns 15 through 21
-0.2008 -0.3990 -0.3070 -0.2329 -0.1226 -0.1050 -0.3636
* untitled.jpg: