Matlab Function With Multiple Variables