📄 prototype1.m
字号:
% Design a prototype filter for CMFB
%Parameters M: number of filter channels
% m: N = 2mM,
%Filter length: N
%Output a half filter coefficent
function pro_h = prototype(M,m)
m=50;
M=4;
wp = pi/(2*M);
ws = pi/M;
N =2*m*M ;
wc =(ws+wp)/2;
pro_h = fir1(N-1,wc/pi);
c0 ='xg';
c1=num2str(m);
c2=num2str(M);
c=strcat(c0,c1,'_',c2,'.dat');
fid = fopen(c,'wb');
fwrite(fid,pro_h(N/2+1:N),'float64');
fclose(fid);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -