Postgresql Get Function Matlab Example Problems