So, I have to generate a square convex function in Matlab and it's Hessian Matrix must be positive definite but I can't find any function that can help me do that.
Is there anything I should search for or I simply think it and insert it from my keyboard?
You can do the following: