Postgresql Create Function In Matlab