function [y,z] = mycon(x) % this function is used in a constrained minimization example y = (norm(x))^2-1; z = []; end