matlab 【圆周卷积和线性卷积】
%线性卷积conv(h,w) %反转 平移 相乘 相加 x=[3,11,7,0,-1,4,2]; h=[2,3,0,-5,2,1]; y = conv(x,h) subplot(3,1,1) stem(x); title('序列x') xlabel('n') ylabel('幅度') subplot(3,1,2) stem(h); title('序列h') xlabel('n') ylabel('幅度') subplot(3,1,3) stem(y); title('序列的卷积和') xlabel('n') ylabel('幅度')

就是错位相乘相加
    M54

 
                
            
         
         浙公网安备 33010602011771号
浙公网安备 33010602011771号