diff options
Diffstat (limited to 'fitgaussian2D.m')
-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'); |