Hello,
I am new to MATLAB and I am trying to minimize a function using fminsearch (line 145, caviaropt.m). But when I do that an error pops "Unable to perform assignment because the size of the left side is 1-by-1 and the size of the right side is 3-by-1" . The function gives a 3x1 vector at initial points but the function has to return a scalar in order to apply fminsearch. How can I solve this issue?
Any help is much appreciated!
댓글 수: 2
이 댓글에 대한 바로 가기 링크
https://kr.mathworks.com/matlabcentral/answers/712953-error-in-fminsearch-line-200-fv-1-funfcn-x-varargin#comment_1254668
이 댓글에 대한 바로 가기 링크
https://kr.mathworks.com/matlabcentral/answers/712953-error-in-fminsearch-line-200-fv-1-funfcn-x-varargin#comment_1254668
이 댓글에 대한 바로 가기 링크
https://kr.mathworks.com/matlabcentral/answers/712953-error-in-fminsearch-line-200-fv-1-funfcn-x-varargin#comment_1254908
이 댓글에 대한 바로 가기 링크
https://kr.mathworks.com/matlabcentral/answers/712953-error-in-fminsearch-line-200-fv-1-funfcn-x-varargin#comment_1254908
댓글을 달려면 로그인하십시오.