prototype1.m

来自「里面囊括了基于matlab滤波器设计的各种.m文件」· M 代码 · 共 23 行

M
23
字号
% 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 + =
减小字号Ctrl + -
显示快捷键?