Postgres View Function In Matlab