看板 MATLAB 關於我們 聯絡資訊
Q. Minimize f(x1,x2)=x(1)-x(2)+2x(1)^2+2x(1)x(2)+x(2)^2 with the starting point (0,0) 首先是要進行涵式建立, function F= fun(x) F=x(1)-x(2)+2*x(1)^2+2*x(1)*x(2)+x(2)^2; 為何我回到Matlab Command Window執行 [x,fval]=fminsearch(@fun,[0 0]) 卻無法求得答案? 麻煩各位幫我解答一下,謝謝 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.125.10.137