after messing around I then realized I meant to fix something in my function. so I made the following correction in my while statement then ran it again: function[xv,yv,iv] = OT1P7_1(f,gradf,x0,tol) %f in the form of anynomous i.e. f=@(x) 2*x(1)*x(2...