Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Important note: please, make sure to write the code by accurately following the

ID: 673435 • Letter: I

Question

Important note: please, make sure to write the code by accurately following the intructions given in the question. Make sure to write down the function and the script file. I've asked for help in MATLAB questions before, and people answered it with different methods than the one specifically mentioned in the question. Also, tell me which code belongs to the function file and which code belongs to the script file,so writing comments to explain the code would be highly appreciated. I posted this question MULTIPLE TIMES previously, but the code either didn't work, or didn't follow the intructions in the question so I would also really appreciate it if you could test the code before giving me the answer and also make sure that it follows the instructions. Thank you so much

Explanation / Answer

function main
%main function which call the Newton solver

%call the solver
solution = Newton

return
function y = Func(x)
%the function which returns the values of F(x)

y(1) = x(1).^3 + x(2).^2 ;//here you can enter your desire functions insted of y(1),y(2),y(3),
y(2) = x(1).^2 - x(2).^3;
y(3)= x(1).^2 - x(2).^3
y= y';

return
function J = Jac(x)
%The function that returns the Jacobian matrix

J(1,3,2) = 3*x(1)^2;
J(1,2,3) = 2*x(2);
J(2,1,3) = 2*x(1);
J(2,3,1) = -3*x(2)^2; //depends on your function you can generet Jacobian matrix
J(3,2,1) = 3*x(1)^2;
J(3,1,2) = 2*x(2);
J(1,1,1) = 2*x(1);
J(2,2,2) = -3*x(2)^2;
J(3,3,3) = -3*x(2)^2;

return