MATLAB求解代數(shù)方程組問題,請幫忙
function ff=test(x,y)
f1=x+y;
f2=x-y;
ff=[f1;f2];
---------------------------------------
clear all;clc
[x,y]=fsolve(@test,[1;1])
運行結果:
??? Input argument "y" is undefined.
Error in ==> test at 2
f1=x+y;
Error in ==> fsolve at 195
fuser = feval(funfcn{3},x,varargin{:});
Error in ==> testsolve at 2
[x,y]=fsolve(@test,[1;1])
請問,這個程序到底什么地方有問題呢?如果可以請您給出正確的程序。謝謝!
返回小木蟲查看更多
今日熱帖
京公網(wǎng)安備 11010802022153號
恩恩恩恩
,
Exactly!