summaryrefslogtreecommitdiff
path: root/fitgaussian2D.m
diff options
context:
space:
mode:
authorEugeniy Mikhailov <evgmik@gmail.com>2012-09-19 23:34:45 -0400
committerEugeniy Mikhailov <evgmik@gmail.com>2012-09-19 23:34:45 -0400
commit9ee328d6a556862710428f115e75de05f9c3eb9c (patch)
tree4593e77bca0554caaefe320e9928ddb0972c92f0 /fitgaussian2D.m
parent45b8ad5eace6dc5fff2e0b445cb5abd3c6b94cb1 (diff)
downloadbeam_profiler-9ee328d6a556862710428f115e75de05f9c3eb9c.tar.gz
beam_profiler-9ee328d6a556862710428f115e75de05f9c3eb9c.zip
fit bounds changed to a more meaningful values
Diffstat (limited to 'fitgaussian2D.m')
-rw-r--r--fitgaussian2D.m4
1 files changed, 2 insertions, 2 deletions
diff --git a/fitgaussian2D.m b/fitgaussian2D.m
index a852b56..817cb77 100644
--- a/fitgaussian2D.m
+++ b/fitgaussian2D.m
@@ -67,8 +67,8 @@ background = fp1D(4);
[X,Y] = meshgrid(1:sizex,1:sizey);
%Lower and upper limits for the 2D fit
-LB = [1,1,1,1,-inf,-1.58,0];
-UB = [sizex,sizey,sizex*10,sizey*10,inf,1.58,inf];
+LB = [1,1,1,1,-inf,-pi/2,-inf];
+UB = [sizex,sizey,sizex*10,sizey*10,inf,pi/2,inf];
% Here we do the 2D fit
options = optimset('lsqnonlin');