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/06/30 07:05:28
![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,](/uploads/image/z/11745365-5-5.jpg?t=matlab%E9%94%99%E8%AF%AF%E6%8F%90%E7%A4%BA%3FOne+or+more+output+arguments+not+assigned+during+call+to+%27D%3A%5CMATLAB7%5Ctoofunction+f+%3D+myfuntf+%28x%29f%3D%5Bx%281%29%5E2%2Bx%281%29%2Asqrt%287%29%2B2%3Bx%281%29%2B5%2Ax%283%29%5E2-3%3Bx%282%29%2Ax%283%29%2B3%5D%3Bx0+%3D+%5B-1+0.5+1%5D%3Boptions%3Doptimset%28%27Display%27%2C%27iter%27%29%3B%5Bx%2Cfval%5D+%3D+fsolve%28%40myfuntf%2Cx0%2C)
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)