|
@@ -13,7 +13,7 @@ function fv=fitSingleZero(globalPar, cax)
|
|
|
|
|
|
cax1=cax-dt;
|
|
cax1=cax-dt;
|
|
if tau==1/alpha
|
|
if tau==1/alpha
|
|
- fv=cax1.*exp(-cax/tau);
|
|
|
|
|
|
+ fv=cax1.*exp(-cax1/tau);
|
|
else
|
|
else
|
|
fv=tau*(exp(-alpha*cax1)-exp(-cax1/tau))/(1-alpha*tau);
|
|
fv=tau*(exp(-alpha*cax1)-exp(-cax1/tau))/(1-alpha*tau);
|
|
end
|
|
end
|
|
@@ -25,4 +25,4 @@ function fv=fitSingleZero(globalPar, cax)
|
|
|
|
|
|
end
|
|
end
|
|
|
|
|
|
-%par=ones(2,
|
|
|
|
|
|
+%par=ones(2,
|