clear
Fs=2e4; % 4K信号,少说的20K Fs吧
A=rand(1,100000); % 将A替换成原始信号
A=A-mean(A);
Num=[0.00161112226381627,-0.000802557086115521,0.00104164258000612,0.00220488455361138,-0.000339129469996929,-0.00583727329637573,-0.00703830581513170,0.00144342287326455,0.0124181301095151,0.0109864063580785,-0.00579153420188363,-0.0201378813916786,-0.0129338148953489,0.0101240504889649,0.0223843772741141,0.00958564072841634,-0.0111968269103885,-0.0150163664062950,-0.00313056206057449,0.00219575978761133,-0.00476811126912141,-0.00231527292530494,0.0202956368426141,0.0327801618043457,-2.81865723570261e-05,-0.0553080345164984,-0.0606321052182241,0.0136366603088961,0.0943818908474909,0.0777895315109752,-0.0369058726383309,-0.125459300158704,-0.0779888326936309,0.0617614861305041,0.137240963654865,0.0617614861305041,-0.0779888326936309,-0.125459300158704,-0.0369058726383309,0.0777895315109752,0.0943818908474909,0.0136366603088961,-0.0606321052182241,-0.0553080345164984,-2.81865723570261e-05,0.0327801618043457,0.0202956368426141,-0.00231527292530494,-0.00476811126912141,0.00219575978761133,-0.00313056206057449,-0.0150163664062950,-0.0111968269103885,0.00958564072841634,0.0223843772741141,0.0101240504889649,-0.0129338148953489,-0.0201378813916786,-0.00579153420188363,0.0109864063580785,0.0124181301095151,0.00144342287326455,-0.00703830581513170,-0.00583727329637573,-0.000339129469996929,0.00220488455361138,0.00104164258000612,-0.000802557086115521,0.00161112226381627];
fil_A = filter(Num,1,A); % 3000-4000带通 |