Professional Documents
Culture Documents
clear all;
w=0:.01:3.14;
a=0.90;
H=1-a*exp(-j*w);
plot(w/3.14,20*log10(abs(
H)),'linewidth',2)
grid
axis([0 1.00 -25 10])
xlabel('frekuensi
ternormalisasi')
ylabel('magnitudo (dB)')
title('Pre-Emphasis
filter')
clear all;
fs=10000;
[x,fs]=wavread('da.wav');
xx=length(x)+1;x(xx)=0;
alpha=0.90;
for i=2:xx y0(i)=x(i-1);
end
for i=1:xx
y(i) = x(i) -
alpha*y0(i);
end
subplot(211)
t=1:xx;
plot(t/fs,y);legend('input'
);grid
xlabel('waktu (dt)');
ylabel('magnitudo');
axis([0 0.7 -0.25 0.25]);
subplot(212)
plot(t/fs,y0);
legend('output');grid Gambar 6.5 Gelombang Filter
xlabel('waktu (dt)'); dengan nilai a 0.90
ylabel('magnitudo');
axis([0 0.7 -1 1.5])