Title: Optimization Functions in MATLAB and Examples