exp7_4_1.m

来自「是Digital signal processing--using Matlab」· M 代码 · 共 13 行

M
13
字号
h=[-4 1 -1 -2 5 6 5 -2 -1 1 -4];
n=0:length(h)-1;
k=0:1:500;
w=pi*k/500;
hr=h*exp(-j*n'*w);
realh=real(hr);
imagh=imag(hr);
magh=abs(hr);
angh=angle(hr);
subplot(2,2,1),stem(n,h),title('impulse response');grid on;
subplot(2,2,2),stem(0:L,a),title('a(n) coefficients');grid on;
subplot(2,2,3),plot(w/pi,hr),title('frequncy in pi units');grid on;
subplot(2,2,4),zplane(h,1),title('Type 1 amplitude response');grid on;

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?