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

📄 inihip2.m

📁 分数延时的matlab代码
💻 M
字号:
function Hip=inihip2(L,Q,wp);
% INIHIP2
% MATLAB m-file for fractional delay approximation
% Initialisation for upsampling interpolation design
%
% First version: 28.12.1992 / Timo Laakso
% This  version: 14.01.1996 / Timo Laakso
%
% Subroutines: standard MATLAB functions
LQ=L*Q; %+1;                      % length and order of the prototype filter
wpQ=wp/Q;                         % design a Qth-band lowpass filter
wsQ=wpQ+2*(1-wp)/Q;
f=[0 wpQ wsQ 1];
m=[1 1 0 0];
hpr=remez(LQ,f,m);                % design prototype filter via Remez routine
%
%plot(hpr);pause
%[Hpr,wpr]=freqz(hpr,1,512);
%plot(wpr/pi,abs(Hpr)); pause
%
Hip=zeros(L,Q);                   % read coefficients in a matrix
                                  % with delay filters as column vectors
for k=1:LQ
  k1=k-1;
  l=floor(k1/Q);                  % coefficient index
  q=rem(k1,Q);                    % filter index (mirrored)
  Hip(l+1,q+1)=hpr(k);
end;

⌨️ 快捷键说明

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