Matlab Defining Function Inside Object