matlab错误提示?One or more output arguments not assigned during call to 'D:\MATLAB7\toofunction f = myfuntf (x)f=[x(1)^2+x(1)*sqrt(7)+2;x(1)+5*x(3)^2-3;x(2)*x(3)+3];x0 = [-1 0.5 1];options=optimset('Display','iter');[x,fval] = fsolve(@myfuntf,x0,

来源:学生作业帮助网 编辑:作业帮 时间:2024/04/25 19:37:45
matlab错误提示?One or more output arguments not assigned during call to 'D:\MATLAB7\toofunction f = myfuntf (x)f=[x(1)^2+x(1)*sqrt(7)+2;x(1)+5*x(3)^2-3;x(2)*x(3)+3];x0 = [-1 0.5 1];options=optimset('Display','iter');[x,fval] = fsolve(@myfuntf,x0,

matlab错误提示?One or more output arguments not assigned during call to 'D:\MATLAB7\toofunction f = myfuntf (x)f=[x(1)^2+x(1)*sqrt(7)+2;x(1)+5*x(3)^2-3;x(2)*x(3)+3];x0 = [-1 0.5 1];options=optimset('Display','iter');[x,fval] = fsolve(@myfuntf,x0,
matlab错误提示?One or more output arguments not assigned during call to 'D:\MATLAB7\too
function f = myfuntf (x)
f=[x(1)^2+x(1)*sqrt(7)+2;x(1)+5*x(3)^2-3;x(2)*x(3)+3];
x0 = [-1 0.5 1];
options=optimset('Display','iter');
[x,fval] = fsolve(@myfuntf,x0,options)
One or more output arguments not assigned during call to 'D:\MATLAB7\toolbox\optim\fsolve.m (fsolve)'.
然后结果出不来

matlab错误提示?One or more output arguments not assigned during call to 'D:\MATLAB7\toofunction f = myfuntf (x)f=[x(1)^2+x(1)*sqrt(7)+2;x(1)+5*x(3)^2-3;x(2)*x(3)+3];x0 = [-1 0.5 1];options=optimset('Display','iter');[x,fval] = fsolve(@myfuntf,x0,
你的函数没有给f分配值,无法输出.
改为function myfuntf (x)