From 9ee328d6a556862710428f115e75de05f9c3eb9c Mon Sep 17 00:00:00 2001 From: Eugeniy Mikhailov Date: Wed, 19 Sep 2012 23:34:45 -0400 Subject: fit bounds changed to a more meaningful values --- fitgaussian2D.m | 4 ++-- 1 file 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'); -- cgit v1.2.3