Labfans是一个针对大学生、工程师和科研工作者的技术社区。 | 论坛首页 | 联系我们(Contact Us) |
![]() |
![]() |
#1 |
初级会员
注册日期: 2010-07-20
年龄: 34
帖子: 1
声望力: 0 ![]() |
![]()
我解这个方程组但是为什么会报错呢
function F=myfun(x) F=[2*x(1)-x(2)-exp(-x(1));-x(1)+2*x(2)-exp(-x(2))]; x0=[-5;-5]; options=optimset('Display','iter'); [x,fval]=fsolve('myfun',x0,options) ??? Input argument "x" is undefined. Error in ==> Untitled5 at 2 F=[2*x(1)-x(2)-exp(-x(1));-x(1)+2*x(2)-exp(-x(2))]; |
![]() |
![]() |