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

📄 hr_type1.m

📁 the file contain many matlab signal source code and many example .
💻 M
字号:
function [Hr,w,a,L]=hr_type1(h);
% Computes Amplitude response of Type-1 LP FIR filter
% ---------------------
% [Hr,w,a,L]=hr_type1(h)
% Hr=Amplitude Response
% w=500 frequecies between [0 pi] over which Hr is computed
% a=Type-1 LP filter coefficients
% L=Order of Hr
% h=Type-1 LP filter impulse response
% 
M=length(h);
L=(M-1)/2;
a=[h(L+1) 2*h(L:-1:1)];
n=[0:L];
w=[0:500]'*pi/500;
Hr=cos(w*n)*a';

⌨️ 快捷键说明

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