Creating User-Defined Functions in MATLAB: Syntax and Examples