A sample for resampling a signal with FFT in Octave or Matlab