From: Zoe on
When I was running my matlab code, the program was terminated by an error.
However, the error message was :

Error using ==> funfun

Error in ==> lsqcurvefit at 149
[x,Resnorm,FVAL,EXITFLAG,OUTPUT,LAMBDA,JACOB] = ...

Error in ==> Transit>Bn_Run_Callback at 435
[p, SSD, residual,exitflag,output,lambda,nJa] = lsqcurvefit(@solve, p, t, data, lb, ub, options, handles);

Error in ==> gui_mainfcn at 75 feval(varargin{:});

Error in ==> Transit_model at 21 gui_mainfcn(gui_State, varargin{:});

From this message, it was hard to tell where the error occured.
Usually, matlab will give me some detailed information, such as improper parameters, incorrect matrix size. However, this code didn't give me detailed information. what is weird is, matlab did give me detailed error information when I was running some other codes.

The version of my matlab is 7.0.1.24704 (R14) Service Pack 1.

How can I fix this problem?