Documente Academic
Documente Profesional
Documente Cultură
Proiect
PROIECTAREA SEMNALELOR
Student: Coordonator:
Program matlab
wav_file='sunet_mat'
[y,Fs]=wavread(wav_file);
channel1=y(:,1);
size(y);
time=(1/Fs)*length(channel1);
t=linspace(0,time,length(channel1));
f2=100;
A=[1];
B=[1, -2*cos(2*pi*f2/Fs),1];
x=y;
y1=filter(B,A,x);
CH=abs(fftshift(fft(x)));
CH1=abs(fftshift(fft(y1)));
figure(1);
plot(t,channel1);
title('Semnal intrare')
figure(2);
plot(t,x,'r');
hold on;
plot(t,y1,'b');
title('"Frecventa initiala si dupa filtrare"')
figure(3);
subplot(211)
plot(t,CH,'r');title('Spectrul semnal intrare')
hold on;
subplot(212)
plot(t,CH1,'b');
title('Spectrul semnal dupa filtrare')
Semnal intrare
1
0.8
0.6
0.4
0.2
-0.2
-0.4
-0.6
-0.8
-1
0 2 4 6 8 10 12 14 16 18
10000
5000
0
0 2 4 6 8 10 12 14 16 18
150
100
50
0
0 2 4 6 8 10 12 14 16 18
"Frecventa initiala si dupa filtrare"
1
0.8
0.6
0.4
0.2
-0.2
-0.4
-0.6
-0.8
-1
0 2 4 6 8 10 12 14 16 18