1D FFT for Matlab

Hey;

Can anybody explain me how i creat an mex file for an 1d fft?
I want to change the fft.m from to Signal Processing Toolbox to cuda.
I have never done this before and need help.

Thanks