필터 지우기
필터 지우기

Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

Error when evoking patternsearch

조회 수: 1 (최근 30일)
JC
JC 2011년 12월 11일
마감: MATLAB Answer Bot 2021년 8월 20일
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

답변 (1개)

Grzegorz Knor
Grzegorz Knor 2012년 2월 20일
Try to debug your program with the command:
dbstop if error
It looks to me, that you have overwrote some matlab function.

이 질문은 마감되었습니다.

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by