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 件のコメント
回答 (0 件)
参考
カテゴリ
Help Center および File 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!