matlab程序运行出现?Input argument "x" is undefined.Error in ==> myfun at 2 F = [ 2*x(1)程序:function F = myfun(x,c)F = [ 2*x(1) - x(2) - exp(c*x(1))-x(1) + 2*x(2) - exp(c*x(2))];c = -1; % define parameter firstx = fsolve(@(x) myfun(x,c),[-5
来源:学生作业帮助网 编辑:作业帮 时间:2024/11/16 16:56:48
matlab程序运行出现?Input argument "x" is undefined.Error in ==> myfun at 2 F = [ 2*x(1)程序:function F = myfun(x,c)F = [ 2*x(1) - x(2) - exp(c*x(1))-x(1) + 2*x(2) - exp(c*x(2))];c = -1; % define parameter firstx = fsolve(@(x) myfun(x,c),[-5
matlab程序运行出现?Input argument "x" is undefined.Error in ==> myfun at 2 F = [ 2*x(1)
程序:
function F = myfun(x,c)
F = [ 2*x(1) - x(2) - exp(c*x(1))
-x(1) + 2*x(2) - exp(c*x(2))];
c = -1; % define parameter first
x = fsolve(@(x) myfun(x,c),[-5;-5])
end
matlab程序运行出现?Input argument "x" is undefined.Error in ==> myfun at 2 F = [ 2*x(1)程序:function F = myfun(x,c)F = [ 2*x(1) - x(2) - exp(c*x(1))-x(1) + 2*x(2) - exp(c*x(2))];c = -1; % define parameter firstx = fsolve(@(x) myfun(x,c),[-5
你是怎么运行的啊