Help me, I can't writting the code for this exercise in Matlab. I have no ideas.
Numerical Optimization !-untitled.jpg

Algorithm 7.2

Numerical Optimization !-1.jpg