matlab程序运行出现?Input argument "x" is undefined.Error in ==> my
来源:学生作业帮 编辑:大师作文网作业帮 分类:综合作业 时间:2024/11/12 05:28:15
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
程序:
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
my" />
你是怎么运行的啊
再问: f5运行
再答: 函数是用来调用的,不能直接运行!直接运行的是脚本文件!脚本文件和函数文件要分清!
再问: f5运行
再答: 函数是用来调用的,不能直接运行!直接运行的是脚本文件!脚本文件和函数文件要分清!
matlab程序运行出现?Input argument "x" is undefined.Error in ==> my
MATLAB 程序错误?Input argument "f" is undefined.Error in ==> jun
matlab错误:Input argument "x" is undefined.Error in ==> overla
MATLAB报错,为什么?Input argument "x" is undefined.Error in ==> m1
matlab!Input argument "f" is undefined.Error in ==> agui_bis
MATLAB:Input argument "x" is undefined
MATLAB:Input argument "x" is undefined.
matlab问题?Input argument 'X' is undefined.
matlab Input argument "x" is undefined.
matlab运行结果Input argument "A" is undefined.
matlab?Input argument "a" is undefined.
matlab老是显示input argument '' is undefined