how to convert this coding to broyden method coding

2 次查看(过去 30 天)
x0=[1 1 1]';
x =x0;
for it=0:2
it=it+1;
F=[10*x(1)-2*x(2)^2+x(2)-2*x(3)-5 8*x(2)^2+4*x(3)^2-9 8*x(2)*x(3)+4];
J=[10 -4*x(2)+1 -2; 0 16*x(2) 8*x(3); 0 8*x(3) 8*x(2)];
J_inv=inv(J);
y=-J_inv*F';
x=x+y;
string=['x(',num2str(it),'): ',num2str(x')];
disp(string)
end
Hi guys this is the coding for newton method but i have to use the same coding and change it to broyden method so can you help me...please

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Statistics and Machine Learning Toolbox 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by