脉冲信号和采样核卷积出现尖刺,我用的是dirac脉冲
然后用了sos采样核
两者卷积有尖刺,不知为啥!代码如下
T = 1;
th=-3*T:dt:3*T-dt;
kk = [-3,-2,-1,1,2,3];
g = zeros(size(th));
for i = 1:length(kk)
g = g+ exp(1j*kk(i)*2*pi*th);
end
g(abs(th) > T/2) = 0; % 使得t在(-0.5 0.5)范围内,其余值置为0
% g = repmat(g, 1, 3); % Repeat the kernel 5 times for 5T
% t_s = -3*T:dt:3*T-0.001; % Time axis for plotting
figure(2);
plot(th, g); % Plot the periodic sampling kernel
xlabel('Time');
ylabel('Amplitude');
title('Periodic Sampling Kernel');