📄 p3_5.m
字号:
% Program P3_5% Modulation Property of DTFTclf;w = -pi:2*pi/255:pi;x1 = [1 3 5 7 9 11 13 15 17];x2 = [1 -1 1 -1 1 -1 1 -1 1];y = x1.*x2;h1 = freqz(x1, 1, w);h2 = freqz(x2, 1, w);h3 = freqz(y,1,w);subplot(3,1,1)plot(w/pi,abs(h1));gridtitle('Magnitude Spectrum of First Sequence')subplot(3,1,2)plot(w/pi,abs(h2));gridtitle('Magnitude Spectrum of Second Sequence')subplot(3,1,3)plot(w/pi,abs(h3));gridtitle('Magnitude Spectrum of Product Sequence')
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -