只需一步,快速开始
您需要 登录 才可以下载或查看,没有账号?我要加入
使用道具 举报
原帖由 dqhnhsfjx 于 2007-1-14 22:12 发表 function F=fun (x) F=; x0=; options=optimest('Display','iter'); =fsolve(@fun,x0,options) 结果: ??? Input argument "x" is undefined. Error in ==> fun at 2 F=;
原帖由 jimin 于 2007-1-14 22:24 发表 epx改为exp optimest改为optimset 以后碰到问题耐心检查一下吧,基本是输入有误
原帖由 dqhnhsfjx 于 2007-1-15 11:28 发表 function F=myf(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(@myf,x0,options) 结果 ??? Input argument "x" is undefined. Error in ==> myf at 2 F=[2*x(1)-x(2)-exp(-x(1)); 修改了exp optimset 还是不行:'(
本版积分规则 发表回复 回帖后跳转到最后一页
|小黑屋|Archiver|手机版|联系我们|声振论坛
GMT+8, 2025-2-21 03:15 , Processed in 0.091662 second(s), 18 queries , Gzip On.
Powered by Discuz! X3.4
Copyright © 2001-2021, Tencent Cloud.