You are on page 1of 2

PRACTICA DE LABORATORIO N° 14

DISEÑO DE FITROS ACTIVOS

Apellidos y Nombres: Quispe Quispe Armando Henrry


CUI: 20200762
1) Filtro activo en Scilab

// Evaluate magnitude response of the filter


fcut = 5; //hz
n = 7; // Filter order
hc1 = analpf(n, 'cheb1', [0.1 0], fcut*2*%pi);
hc2 = analpf(n, 'cheb2', [0 0.1], fcut*2*%pi);
he = analpf(n, 'ellip', [0.1 0.1], fcut*2*%pi);
hb = analpf(n, 'butt', [0 0], fcut*2*%pi);
hc1.dt = 'c';
hc2.dt = 'c';
he.dt = 'c';
hb.dt = 'c';
clf();
[fr, hf] = repfreq(hc1, 0, 15);
plot(fr, abs(hf), 'b')
[fr, hf] = repfreq(hc2, 0, 15);
plot(fr,abs(hf),'g')
[fr, hf] = repfreq(he, 0, 15);
plot(fr,abs(hf),'r')
[fr, hf] = repfreq(hb, 0, 15);
plot(fr, abs(hf), 'c')
legend(["Chebyshev I", "Chebyshev II", "Elliptic", "Butterworth"]);
xgrid()
xlabel("Frequency (Hz)")
ylabel("Gain")
title("Analog filters of order 7")
Modifique el código y cambie los valores a orden 9 y frecuencia de corte 1 KHz. Considere que
debe cambiarse los límites de frecuencia para observar el comportamiento del filtro.
Modifique el ripple de supresión a 0.08 y de paso a 0.09.

// Evaluate magnitude response of the filter


fcut = 1000; //hz
n = 9; // Filter order
hc1 = analpf(n, 'cheb1', [0.08 0], fcut*2*%pi);
hc2 = analpf(n, 'cheb2', [0 0.09], fcut*2*%pi);
he = analpf(n, 'ellip', [0.08 0.09], fcut*2*%pi);
hb = analpf(n, 'butt', [0 0], fcut*2*%pi);
hc1.dt = 'c';
hc2.dt = 'c';
he.dt = 'c';
hb.dt = 'c';
clf();
[fr, hf] = repfreq(hc1, 0, 6000);
plot(fr, abs(hf), 'b')
[fr, hf] = repfreq(hc2, 0, 6000);
plot(fr,abs(hf),'g')
[fr, hf] = repfreq(he, 0, 6000);
plot(fr,abs(hf),'r')
[fr, hf] = repfreq(hb, 0, 6000);
plot(fr, abs(hf), 'c')
legend(["Chebyshev I", "Chebyshev II", "Elliptic", "Butterworth"]);
xgrid()
xlabel("Frequency (Hz)")
ylabel("Gain")
title("Analog filters of order 9")

You might also like