Rank: 247016 based on 0 downloads (last 30 days) and 0 file submitted
photo

Andy

E-mail
Lat/Long
39.88, 75.25

Personal Profile:
Professional Interests:

 

Watch this Author's files

 

Comments and Ratings by Andy
Updated File Comments Rating
29 Mar 2009 fminsearchbnd new improved bounded fminsearch algorithm Author: Ken Purchase

I was going to use this code to fit Gaussians to a known curve by minimizing the known - fit residual. I tried for 3 and 4 Gaussians, meaning 9 or 12 variables. This newer code fails giving the error:

Too many input arguments.

Error in ==> fminsearchbnd>@(x,varargin)fun(xtransform(x),varargin{:}) at 233
intrafun = @(x, varargin) fun(xtransform(x), varargin{:});

Error in ==> fminsearch at 205
fv(:,1) = funfcn(x,varargin{:});

Error in ==> fminsearchbnd at 264
[xu,fval,exitflag,output] = fminsearch(intrafun,x0u,options,varargin);

The original code by John D'Errico works perfectly.

Contact us