Lipschitz Continuous Gradient Function Matlab