Explain User Defined Functions Matlab