ideal_lp.m、freqz_m.m、freqz_m2.m

简介: ideal_lp.m、freqz_m.m、freqz_m2.m

ideal_lp.m:

function hd=ideal_lp(wc,N) %点0到N-1之间的理想脉冲响应
%wc=截止频率(弧度)%N=理想滤波器的长度
tao=(N-1)/2;
n=[0:(N-1)];
m=n-tao+eps; %加一个小数以避免0作除数
hd=sin(wc*m)./(pi*m);

freqz_m.m:

function [db,mag,pha,grd,w]=freqz_m(b,a)
   [H,w]=freqz(b,a,1000,'whole');
   H=(H(1:501));
   w=(w(1:501));
   mag=abs(H);
   db=20*log10((mag+eps)/max(mag));
   pha=angle(H);
   grd=grpdelay(b,a,w);

freqz_m2.m

function [db,mag,pha,w]=freqz_m2(b,a)
   [H,w]=freqz(b,a,1000,'whole');
   H=(H(1:1:501));
   w=(w(1:1:501));
   mag=abs(H);
   db=20*log10((mag+eps)/max(mag));
   pha=angle(H);
   grd=grpdelay;
相关文章
|
6月前
问题 There is no screen to be resumed matching
问题 There is no screen to be resumed matching
65 0
|
9月前
|
算法 PyTorch 算法框架/工具
论文解读:LaMa:Resolution-robust Large Mask Inpainting with Fourier Convolutions
论文解读:LaMa:Resolution-robust Large Mask Inpainting with Fourier Convolutions
361 0
|
10月前
|
存储 分布式计算 网络协议
译|A scalable, commodity data center network architecture(一)
译|A scalable, commodity data center network architecture
73 0
|
10月前
|
存储 算法 网络协议
译|A scalable, commodity data center network architecture(二)
译|A scalable, commodity data center network architecture(二)
75 0
|
10月前
|
缓存 负载均衡 网络协议
译|A scalable, commodity data center network architecture(三)
译|A scalable, commodity data center network architecture(三)
72 0
|
编解码 算法 数据挖掘
Density- and Grid-Based Methods|学习笔记
快速学习 Density- and Grid-Based Methods
104 0
Density- and Grid-Based Methods|学习笔记
|
数据可视化 Linux Python
成功解决RuntimeError: Selected KDE bandwidth is 0. Cannot estiamte density
成功解决RuntimeError: Selected KDE bandwidth is 0. Cannot estiamte density
|
人工智能
Educational Codeforces Round 98 (Rated for Div. 2)B-Toy Blocks
You are asked to watch your nephew who likes to play with toy blocks in a strange way. He has n boxes and the i-th box has ai blocks. His game consists of two steps: he chooses an arbitrary box i; he tries to move all blocks from the i-th box to other boxes.
237 0
|
存储 BI
SAP WM中阶之事务代码LX14 - Material Movement Frequency
SAP WM中阶之事务代码LX14 - Material Movement Frequency
SAP WM中阶之事务代码LX14 - Material Movement Frequency