Example For User Defined Function Matlab