>> 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