[求助]!!!求助:用MATLAB解方程时遇到的错误
我用MATLAB解方程时遇到下面的错误: <BR>首先我编了一个M方程文件,如下: <BR>funtion Q=fun(T) <BR>x=T(1);y=T(2);z=T(3); <BR>Q=zeros(3,1); <BR>Q(1)=x+y-z; <BR>Q(2)=cos(x)+y^3+z-5; <BR>Q(3)=4*x+2^y+log(z)-1;//(为了体现错误,我随便举了个能说明总是的简单例子) <BR>保存后,我在command窗口中调用写到: <BR>X=fsolve(@fun,,optimset('Display','off')) <BR>然后在运行时,出现了以下显示的错误: <BR>Warning: feval on script names will not work, or may work differently, <BR> in a future version of MATLAB.To make your code insensitive to any change <BR> and to suppress this warning message: <BR> - Either change the script to a function. <BR> - Or use eval instead of feval. <BR> The script file in question is fun. <BR>> In fsolve at 176 <BR>??? Attempt to execute SCRIPT fun as a function. <BR><BR>Error in ==> fsolve at 176 <BR> fuser = feval(funfcn{3},x,varargin{:}); <BR><BR>谁能告诉我这是为什么?我刚开始用MATLAB,什么也不会,大家赐教,谢谢。 <BR>另外,我用的是MATLAB R2006a的版本。 <BR>在线等结果,谢谢了! <P>我已经找出错误的原因了,谢谢。</P>回复:(supernovjw)[求助]!!!求助:用MATLAB解方程时...
问题解决之后最好说明一下原因和处理方法
页:
[1]