h=fftresample(f,L); h=fftresample(f,L,dim);
fftresample(f,L) returns a Fourier interpolation of the signal f to length L. If the function is applied to a matrix, it will apply to each column.
fftresample(f,L,dim) does the same along dimension dim.
If the input signal is not a periodic signal (or close to), the dctresample method gives much better results at the endpoints.