Dimension mismatch error while using FMINSEARCH
정보
이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.
이전 댓글 표시
I keep getting this error message.
??? Subscripted assignment dimension mismatch.
Error in ==> fminsearch at 205
fv(:,1) = funfcn(x,varargin{:});
댓글 수: 1
Matt Tearle
2011년 3월 2일
This contains even less information than the duplicate (2358), although the title is more descriptive. Any chance you can kill this one, and change the title of 2358? (Or kill 2358 and give more info here.) Otherwise we're going to end up with parallel discussions.
답변 (3개)
Paulo Silva
2011년 3월 2일
0 개 추천
funfucn is returning more lines than you have in the variable fv
댓글 수: 1
buxZED
2011년 3월 2일
Walter Roberson
2011년 3월 2일
0 개 추천
댓글 수: 2
buxZED
2011년 3월 2일
Walter Roberson
2011년 3월 2일
At the beginning of your P5Function, put in
disp(size(Sig))
and at the end put in
disp(size(J))
fminsearch documents that the function needs to return a scalar output, but does not document what the array size passed in will be exactly. I believe that the array size passed in should be the same as the array size of the initial value, but it doesn't hurt to check experimentally.
이 질문은 마감되었습니다.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!