⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ex3042.m

📁 the file contain many matlab signal source code and many example .
💻 M
字号:
M=25;alpha=(M-1)/2;
n=0:M-1;
hd=(2/pi)*((sin((pi/2)*(n-alpha)).^2)./(n-alpha));
hd(alpha+1)=0;
w_han=(hanning(M))';
h=hd.*w_han;
[Hr,w,P,L]=Hr_Type3(h);
% plots
subplot(221)
stem(n,hd);axis([-1 M -1.2 1.2]);
subplot(222)
stem(n,w_han);axis([-1 M 0 1.2]);
subplot(223)
stem(n,h);axis([-1 M -1.2 1.2]);
w=w';Hr=Hr';
w=[-fliplr(w),w(2:501)];Hr=[-fliplr(Hr),Hr(2:501)];
subplot(224)
plot(w/pi,Hr);axis([-1 1 -1.1 1.1]);
grid on

⌨️ 快捷键说明

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