Create Sql Function With Input Matlab Function