Matlab Function With Array As Parameter