title: "Phase shuffling" (randomising phases) of a time series with matlab
body: <p>I was wondering how to shuffle the phases (Phase shuffling) of a time series. For this I need to Fourier transform the time series, randomise the phases and take an inverse Fourier transform. Unfortunately I have no idea how to start or which functions to use respectively. </p>
  
  <p>Can anybody help me out, maybe with a simple example how this might work?</p>
  
  <p>Thanks in advance</p>