p3_6.m
来自「《数字信号处理实验指导书(MATLAB 版)》 著者: (美)米特拉著 」· M 代码 · 共 22 行
M
22 行
% Program P3_6% Time Reversal Property of DTFTclf;w = -pi:2*pi/255:pi;num = [1 2 3 4];L = length(num)-1;h1 = freqz(num, 1, w);h2 = freqz(fliplr(num), 1, w);h3 = exp(w*L*i).*h2;subplot(2,2,1)plot(w/pi,abs(h1));gridtitle('Magnitude Spectrum of Original Sequence')subplot(2,2,2)plot(w/pi,abs(h3));gridtitle('Magnitude Spectrum of Time-Reversed Sequence')subplot(2,2,3)plot(w/pi,angle(h1));gridtitle('Phase Spectrum of Original Sequence')subplot(2,2,4)plot(w/pi,angle(h3));gridtitle('Phase Spectrum of Time-Reversed Sequence')
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?