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('幅度')

就是错位相乘相加

 

posted @ 2019-04-05 22:04  Crown-V  阅读(619)  评论(0)    收藏  举报