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

 Réponse acceptée

ramoje
ramoje le 23 Nov 2022

0 votes

可以!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

Plus de réponses (0)

Catégories

En savoir plus sur 数学 dans Centre d'aide et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!