Hi,
When I try to use the example in "help patternsearch", I got this error:
X = patternsearch(@(x) 3*sin(x(1))+exp(x(2)),[1;1],[],[],[],[],[0 0])
??? Error using ==> mean
Too many input arguments.
Error in ==> getinitial at 26 meanX = mean([Iterate.x],2);
Error in ==> pfminbnd at 13 [optimState,nextIterate,MeshSize,EXITFLAG,run] = ...
Error in ==> patternsearch at 353 [X,FVAL,EXITFLAG,OUTPUT] = pfminbnd(FUN,objFcnArg,initialX,numberOfVariables,Iterate, ...
Does anyone see this error before? Thank you very much.
In Matlab 2011a. Matlab 7.12. Global optimization toolbox 3.1.1. Optimization toolbox 6.0