diff options
-rw-r--r-- | xmds2/realistic_Rb_and_fields/find_pulse_center.m | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xmds2/realistic_Rb_and_fields/find_pulse_center.m b/xmds2/realistic_Rb_and_fields/find_pulse_center.m index 11b3395..2aef99d 100644 --- a/xmds2/realistic_Rb_and_fields/find_pulse_center.m +++ b/xmds2/realistic_Rb_and_fields/find_pulse_center.m @@ -1,7 +1,7 @@ function [pc, pc_err] = find_pulse_center(x,y) f=fittype(@(A,x0,width, x) A.*exp(-((x-x0)/width).^2) ); -pin=[1e4, 0, .4e-6]; % A, x0, width +pin=[max(y), 0, .4e-6]; % A, x0, width [fitobject,gof] = fit (x, y, f, 'StartPoint', pin); ci = confint(fitobject); |