IIR, FIR 필터 설계(DSP)
- 최초 등록일
- 2012.05.18
- 최종 저작일
- 2009.12
- 18페이지/ 한컴오피스
- 가격 3,000원
소개글
디지털신호처리 과목의 프로젝트입니다.
IIR필터, FIR필터 설계이며, 본 파일은 코드를 포함하고 있습니다.
목차
1. IIR Filter
1.1 Butterworth Filter
1.2 Chebychev 1 Filter
1.3 Chebychev 2 Filter
1.4 Elliptic Filter
2. FIR FIlter
2.1 Using Kaiser Window
2.2 Using Hamming Window
2.3 Using Hanning Window
2.4 Using Blackman Window
본문내용
figure(9);
w_p=0.5*pi;
w_s=0.52*pi;
tr_wid=w_s-w_p;
N=ceil(11*pi/tr_wid);
nn=0:1:N;
w_c=w_n*pi;
hd=(w_c/pi)*sinc((w_c/pi)*(nn-N/2));
imp=blackman(N+1)`;
h=hd.*imp;
dw=pi/500;
db=20*log10(abs(freqz(h,1,-pi:dw:pi)));
R_p=-(min(db(501:1:w_p/dw+501)));
A_s=-round(max(db(w_s/dw+501:1:1001)));
subplot(2,2,1);
stem(nn,hd);
title(`Impulse Response`);
axis([0,N,-0.1 0.6]);
grid on
xlabel(`n`);
ylabel(`h[n]`);
subplot(2,2,2);
stem(nn,imp);
title(`Blackman Window`);
axis([0,N,0 1.1]);
grid on
xlabel(`n`);
ylabel(`w[n]`);
subplot(2,2,3);
stem(nn,h);
title(`Actual Impulse Response`);
axis([0,N,-0.1 0.6]);
grid on
xlabel(`n`);
ylabel(`h[n]`);
subplot(2,2,4);
plot(-1:dw/pi:1,db,`b-`);
참고 자료
없음