How To Write User Defined Functions In Matlab