function grad = ezfngrad(x) % usage: grad = ezfngrad(x) % description: Returns the gradient vector for % ezfn(x), assuming x a column vector. % no bulletproofing grad = [2*x(1)-x(2)+2; 2*x(2)-x(1)-1];