Matlab Function With Variable Inputs