非线性方程组的求解、fsolve函数。

我想求的是一系列的非线性方程组的解将方程的解按照一个矩阵存储起来。
输出错误提示是这样
??? Undefined function or method 'fslove' for input arguments of type 'function_handle'
求大神帮忙解决:hug:

 采纳的回答

ramoje
ramoje 2022-11-23

0 个投票

可以!i=0;y=zeros(30*29*28,3);
for a=1:30
for b=2:30
for c=3:30
i=i+1;
y(i,1:3)=fsolve(@(x)[(x(1)-B(a)).^2+(x(2)-C(a)).^2+x(3).^2-E(a)^2;...
(x(1)-B(b)).^2+(x(2)-C(b)).^2+x(3).^2-E(b)^2;...
(x(1)-B(c)).^2+(x(2)-C(c)).^2+x(3).^2-E(c)^2],[4,5,6]);
end
end
end

更多回答(0 个)

类别

帮助中心File Exchange 中查找有关 非线性方程组 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!