Codice: Seleziona tutto
Y= wavread (Ncampioni,Fs, 'int16');
Fs=16000;
T1= (0:1/Fs:20-1/Fs);
Y1= Y(0: length(T1);
plot (Y1,T1);
h= ones (101,1)/101;
y=conv (Y1,h);
dim_y= size (y);
b=length(y);
plot (y);
title ('filtraggio su u unico blocco');Codice: Seleziona tutto
Y= wavread (Ncampioni,Fs, 'int16');
Fs=16000;
T1= (0:1/Fs:20-1/Fs);
Y1= Y(0: length(T1);
plot (Y1,T1);
h= ones (101,1)/101;
y=conv (Y1,h);
dim_y= size (y);
b=length(y);
plot (y);
title ('filtraggio su u unico blocco');

pixx87 ha scritto:mi sono persa

pixx87 ha scritto:non mi abbandonare
Codice: Seleziona tutto
fs = 16000 ;
[n,Wn,beta,ftype] = kaiserord([4000 4500],[1 0],[0.01 0.1],fs);
b = fir1(n,Wn,ftype,kaiser(n+1,beta),'noscale');
[h,f] = freqz(b,1,n,fs);
Mh = abs(h);
Ph = phase(h);
figure(1)
subplot(2,1,1);
plot(f,Mh);
hold on
plot(f,1/sqrt(2)*ones(size(f)),'g.-');
hold off
grid;
title('Modulo')
subplot(2,1,2);
plot(f,Ph);
grid;
title('Fase')
