Matlab Function With Array Input From User