diff options
author | Eugeniy Mikhailov <evgmik@gmail.com> | 2012-09-19 23:34:45 -0400 |
---|---|---|
committer | Eugeniy Mikhailov <evgmik@gmail.com> | 2012-09-19 23:34:45 -0400 |
commit | 9ee328d6a556862710428f115e75de05f9c3eb9c (patch) | |
tree | 4593e77bca0554caaefe320e9928ddb0972c92f0 | |
parent | 45b8ad5eace6dc5fff2e0b445cb5abd3c6b94cb1 (diff) | |
download | beam_profiler-9ee328d6a556862710428f115e75de05f9c3eb9c.tar.gz beam_profiler-9ee328d6a556862710428f115e75de05f9c3eb9c.zip |
fit bounds changed to a more meaningful values
-rw-r--r-- | fitgaussian2D.m | 4 |
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'); |