Matlab FFT例程

本文不介紹FFT的計算過程,僅介紹Matlab的FFT例程。spa X = [...]; %256個數 L = length(X); n = 1:L; Fs = 8000; %採樣率 t = n/Fs; subplot(2,1,1); plot(t,X); title('Time Domain'); Y = fft(X); %FFT運算 P2 = abs(Y);
相關文章
相關標籤/搜索