retrieve phase matlab