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);
相关文章
相关标签/搜索