Im really bad at MatLab and need help with this problem Can
I\'m really bad at MatLab and need help with this problem. Can you please give me a very simple code to satisfy the following:
(Computer problem) Implement the following MATLAB routine of the newton\'s method for optimizing min, F(): optimizing min, F(a) Step 0. Initialization: while \"not converge\" do Step 2. *-1d end while where stopping criteria are the same as the gradient descent method. Apply the MATLAB routine to compute a minimizer of min F(x) =-log(1-XI-X2)-log(x)-log(x) with an initial point [/10,6/10Solution
plot.m: m=menu(’Pick a plot’,’Sine plot’,’Cosine plot’);
if m==1, x=(-pi):pi/40:pi;
y=sin(x); title(’Sine’) else x=(-pi):pi/40:pi;
y=cos(x);
title(’Cosine’) end plot(x,y)
