resample function

Change the sampling rate of a signal