For fast Fourier transform in MATLAB, we use C + + language to achieve the same function. The butterfly algorithm for sorting is also a fast algorithm. FFT C + + code implementation, efficiency is higher than MATLAB, and has been debugged. -FFT of c++ code to achieve efficiency is higher than that of MATLAB, and has passed testing.