[問題] fsolve的問題已回收

看板MATLAB作者 (m24)時間15年前 (2010/10/19 19:58), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
>> syms xb >> fsolve(inline(xb^2-1),[-4 4]) Warning: Cannot determine from calling sequence whether to use new (2.0 or later) FSOLVE function or grandfathered FSOLVE function. Assuming new syntax; if call was grandfathered FSOLVE syntax, this may give unexpected results. To force new syntax and avoid warning, add options structure argument: x = fsolve(@sin,3,optimset('fsolve')); To force grandfathered syntax and avoid warning, add options array argument: x = fsolve(@sin,3,foptions); > In C:\MATLAB6p5\toolbox\optim\fsolve.m (parse_call) at line 389 In C:\MATLAB6p5\toolbox\optim\fsolve.m at line 101 Optimization terminated successfully: First-order optimality is less than options.TolFun. ans = -1.0000 1.0000 >> 為什麼會多出那麼多的字 是有出錯麼? -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.120.6.185
文章代碼(AID): #1ClOVbvG (MATLAB)