Create Sql Function With Input Matlab