Postgres Max Function In Matlab Example