|
fun1文件
funtion y=fun1(x)
y=[x(1)-0.5*sin(x(1))-0.3*cos(x(2)),x(2)-0.5*cos(x(1))+0.3*sin(x(2))]
命令窗口
>> x0=[0.1,0.1]
x0 =
0.1000 0.1000
>> x = fsolve(@fun1,x0)
错误:
Warning: feval on script names will not work, or may work differently,
in a future version of MATLAB. To make your code insensitive to any change
and to suppress this warning message:
- Either change the script to a function.
- Or use eval instead of feval.
The script file in question is fun1.
> In fsolve at 180
??? Attempt to execute SCRIPT fun1 as a function.
Error in ==> fsolve at 180
fuser = feval(funfcn{3},x,varargin{:});
??? try open('>> x0=[0.1,0.1]
|
Error: Missing variable or function.
解非线性方程
怎解?
怎么解呀?
哪里错了? |
|