Valid Matlab Function With Multiple Outputs