输入信号如何与 Hamming、Hanning、Blackman 等窗口函数相乘?
我尝试使用 Blackmann 窗函数将 MHz}处采样输出图是
- 乘法是如何进行的?
输入信号是行矩阵,Blackman 窗口在列矩阵中生成样本。乘法生成一个矩阵,即输入信号的一个样本与窗函数的 64 个样本相乘。对于一个特定的点样本,有 64 个样本值。我打算用填充零计算 128 点 FFT。
- 那么对于一个特定的样本点,应该考虑哪个值来计算 FFT?
这是我的代码:
N = 64; % signal length (power of 2)
T = 10*(10^-9) ; % sampling period (and rate) is set to 1
A = 1; % sinusoid amplitude
phi = 0; % phase of zero
f = 10*(10^6); % frequency (under Nyquist limit)
nT = [0:N-1]*T; % discrete time axis
w = blackman(N,'periodic');
x1 = A*cos(2*pi*f*nT);
x = w*x1 ; % windowed signal
subplot (311);
stem (x1);
wp = [w;zeros((zpf-1)*N,1)];
subplot (313);
stem (x);
subplot (312);
stem (w);
disp (x1);
disp (w);
disp (x);