【问题】系数中含有向量和sum的非线性方程组怎么解决。
显示 更早的评论
m是一个数目为8609的向量,m这个参数如何传递进去。
functionF=root3d(x)
F(1)=8609*log(abs(x(2)))-8609*psi(x(1))-sum(log(abs(m-x(3))))
F(2)=8609*x(1)*1/abs(x(2))-sum(1./(m-x(3)))
F(3)=(x(1)+1)*sum(1./abs(m-x(3)))-sum(x(2)./(m-x(3))^2)
fun= @root3d;
x0= [0,0,0];
x= fsolve(fun,x0)
提示m参数未定义,如何解决呢,谢谢各位。
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 非线性方程组 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!