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

📄 firbfilt.asv

📁 使用Matlab实现了FIR与IIR滤波器
💻 ASV
字号:
function [ output_args ] = Untitled1( input_args )%UNTITLED1 Summary of this function goes here%  Detailed explanation goes here[y,ft,bits]=wavread('hello.wav');subplot(2,2,1);plot(y);xlabel('Time Index t');ylabel('Amplitude');title('原始时域图象');subplot(2,2,2);plot(abs(fft(y)));xlabel('Frequence Index w');ylabel('Amplitude');title('原始频域图象');grid;fcuts=[1000 1200 3000 3200];mags = [0 1 0];devs = [10^(-100/20),(1-10^(-1/20)),10^(-100/20)];[N,Wn,beta,ftype] = kaiserord(fcuts,mags,devs,ft);kw = kaiser(N+1,beta);b = fir1(N,Wn,kw);v=fftfilt(b,y);subplot(2,1,2);plot(v);xlabel('Time Index t');ylabel('Amplitude');title('FIR带通滤波时域图象');sound(v,ft,bits);

⌨️ 快捷键说明

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