Postgres Find Function Matlab Example Code Switching