Está en la página 1de 14

Filtros pasa bajos

>> fsim=50000;
>> Rp=1;
>> Rs=20;
>> Wp=2*3400/fsim;
>> Ws=2*4000/fsim;
>> [N,Wn]=buttord(Wp,Ws,Rp,Rs);
>> [b,a]=butter(N,Wn);
>> f=0:1:7400;
>> H=freqz(b,a,f,fsim);
>> plot(f,abs(H));

>> [N,Wn]=cheb1ord(Wp,Ws,Rp,Rs);
>> [b,a]=cheby1(N,Rp,Wn);
>> f=0:1:7400;
>> H=freqz(b,a,f,fsim);
>> plot(f,abs(H));

>> [N,Wn]=cheb2ord(Wp,Ws,Rp,Rs);
>> [b,a]=cheby2(N,Rs,Wn);
>> f=0:1:7400;
>> H=freqs(b,a,f,fsim);
>> H=freqz(b,a,f,fsim);
>> plot(f,abs(H));

>> [N,Wn]=ellipord(Wp,Ws,Rp,Rs);
>> [b,a]=ellip(N,Rp,Rs,Wn);
>> f=0:1:7400;
>> H=freqs(b,a,f,fsim);
>> H=freqz(b,a,f,fsim);
>> plot(f,abs(H));

Filtro pasa altos


>> Rp=0.5;
>> Rs=40;
>> Wp=2*8000/fsim;
>> Ws=2*4000/fsim;
>> [N,Wn]=buttord(Wp,Ws,Rp,Rs);
>> [b,a]=butter(N,Wn,'high');
>> f=0:1:7400;
>> H=freqz(b,a,f,fsim);
>> plot(f,abs(H));

>> fsim=30000;
>> Rp=0.5;
>>Rs=40;
>>Wp=2*8000/fsim;
>>Ws=2*4000/fsim;
>> [N,Wn]=cheb1ord(Wp,Ws,Rp,Rs);
>> [b,a]=cheby1(N,Rp,Wn,'high');
>> f=0:1:7400;
>> H=freqz(b,a,f,fsim);
>> plot(f,abs(H));

>> fsim=30000;
>> Rp=0.5;
>>Rs=40;
>>Wp=2*8000/fsim;
>>Ws=2*4000/fsim;
>> [N,Wn]=cheb2ord(Wp,Ws,Rp,Rs);
>> [b,a]=cheby2(N,Rs,Wn,'high');
>> f=0:1:7400;
>> H=freqz(b,a,f,fsim);

>> plot(f,abs(H));

>> fsim=30000;
>> Rp=0.5;
>>Rs=40;
>>Wp=2*8000/fsim;
>>Ws=2*4000/fsim;
>> [N,Wn]=ellipord(Wp,Ws,Rp,Rs);
>> [b,a]=ellip(N,Rp,Rs,Wn,'high');
>> f=0:1:7400;
>> H=freqz(b,a,f,fsim);
>> plot(f,abs(H));

Filtro pasa banda


>> fsim=1e5;
>> Rp=1;
>> Rs=30;
>> Wp=[2*4000,2*7400]/fsim;
>> Ws=[2*3400,2*8000]/fsim;
>> [N,Wn]=buttord(Wp,Ws,Rp,Rs);
>> [b,a]=butter(N,Wn);
>> f=0:1:7400;
>> H=freqz(b,a,f,fsim);
>> plot(f,abs(H));

>> fsim=1e5;
>> Rp=1;
>> Rs=30;
>> Wp=[2*4000,2*7400]/fsim;
>> Ws=[2*3400,2*8000]/fsim;
>> [N,Wn]=cheb1ord(Wp,Ws,Rp,Rs);
>> [b,a]=cheby1(N,Rp,Wn);
>> f=0:1:7400;
>> H=freqz(b,a,f,fsim);
>> plot(f,abs(H));

>> fsim=1e5;
>> Rp=1;
>> Rs=30;
>> Wp=[2*4000,2*7400]/fsim;
>> Ws=[2*3400,2*8000]/fsim;
>> [N,Wn]=cheb2ord(Wp,Ws,Rp,Rs);
>> [b,a]=cheby2(N,Rs,Wn);
>> f=0:1:7400;
>> H=freqz(b,a,f,fsim);
>> plot(f,abs(H));

>> fsim=1e5;
>> Rp=1;
>> Rs=30;
>> Wp=[2*4000,2*7400]/fsim;
>> Ws=[2*3400,2*8000]/fsim;
>> [N,Wn]=ellipord(Wp,Ws,Rp,Rs);
>> [b,a]=ellip(N,Rp,Rs,Wn);
>> f=0:1:7400;
>> H=freqz(b,a,f,fsim);
>> plot(f,abs(H));

Filtro banda eliminada

>> fsim=60000;
>> Rp=1;
>> Rs=60;
>> Wp=[2*3000,2*8000]/fsim;
>> Ws=[2*4000,2*7000]/fsim;
>> [N,Wn]=buttord(Wp,Ws,Rp,Rs);
>> [b,a]=butter(N,Wn,'stop');
>> f=0:1:11000;
>> H=freqz(b,a,f,fsim);
>> plot(f,abs(H));

>> fsim=60000;
>> Rp=1;
>> Rs=60;
>> Wp=[2*3000,2*8000]/fsim;
>> Ws=[2*4000,2*7000]/fsim;
>> [N,Wn]=cheb1ord(Wp,Ws,Rp,Rs);
>> [b,a]=cheby1(N,Rp,Wn,'stop');
>> f=0:1:11000;
>> H=freqz(b,a,f,fsim);

>> plot(f,abs(H));

>> fsim=60000;
>> Rp=1;
>> Rs=60;
>> Wp=[2*3000,2*8000]/fsim;
>> Ws=[2*4000,2*7000]/fsim;
>> [N,Wn]=cheb2ord(Wp,Ws,Rp,Rs);
>> [b,a]=cheby2(N,Rs,Wn,'stop');
>> f=0:1:11000;
>> H=freqz(b,a,f,fsim);
>> plot(f,abs(H));

>> fsim=60000;
>> Rp=1;
>> Rs=60;
>> Wp=[2*3000,2*8000]/fsim;
>> Ws=[2*4000,2*7000]/fsim;
>> [N,Wn]=ellipord(Wp,Ws,Rp,Rs);
>> [b,a]=ellip(N,Rp,Rs,Wn,'stop');
>> f=0:1:11000;
>> H=freqz(b,a,f,fsim);
>> plot(f,abs(H));

Filtro pasa bajo:


N
Wn

Butterworth
18
0.1415

Chebychev I
7
0.1360

Chebychev II
7
0.16

Cauer
4
0.1360

Butterworth
7
0.4520

Chebychev I
5
0.5333

Chebychev II
5
0.2667

Cauer
4

Butterworth
14

Chebychev I
6

Chebychev II
6

Cauer
4

Filtro pasa alto:


N
Wn
Filtro pasa banda:
N

Wn

0.2622, 0.4994

0.2667, 0.4933

0.2267, 0.5333

0.2667, 0.4933

Chebychev I
9
0.1000, 0.2667

Chebychev II
9
0.1333, 0.2333

Cauer
6
0.1000, 0.2667

Filtro banda eliminada


Butterworth
18
0.1173, 0.2627

N
Wn

Filtro diseado por el mtodo de Butterworth


N=8
b= 1.0e-004 *

Wn= 0.0558, 0.1715


a= 1.0e+003 *

Columns 1 through 5
0.0051

0 -0.0406

Columns 1 through 5
0 0.1422

0.0010 -0.0135 0.0857 -0.3415


0.9549

Columns 6 through 10
Columns 6 through 10
0 -0.2844

0 0.3555

0
-1.9866 3.1800 -3.9956 3.9824 3.1591

Columns 11 through 15
-0.2844

0 0.1422

0 -0.0406

Columns 16 through 17

Columns 11 through 15
1.9880 -0.9820 0.3733 -0.1056
0.0210

0 0.0051
Columns 16 through 17
-0.0026 0.0002
>> fsim=1000;
>> Rp=1;
>> Rs=40;
>> Wp=[2*30,2*80]/fsim;
>> Ws=[2*10,2*120]/fsim;
>> [N,Wn]=buttord(Wp,Ws,Rp,Rs);
>> [b,a]=butter(N,Wn);
>> f=0:1:180;
>> H=freqz(b,a,f,fsim);
>> plot(f,abs(H));

Filtro diseado por el mtodo Cauer


N= 4
b= Columns 1 through 5

Wn= 0.0600, 0.1600


a= Columns 1 through 5

0.0117 -0.0761 0.2274 -0.4125


0.4988

1.0000 -7.2444 23.3813 -43.8950


52.4173

Columns 6 through 9

Columns 6 through 9

-0.4125 0.2274 -0.0761 0.0117

-40.7683 20.1701 -5.8055 0.7447

>> fsim=1000;
>> Rp=1;
>> Rs=40;
>> Wp=[2*30,2*80]/fsim;
>> Ws=[2*10,2*120]/fsim;
>> [N,Wn]=ellipord(Wp,Ws,Rp,Rs);
>> [b,a]=ellip(N,Rp,Rs,Wn);
>> f=0:1:180;
>> H=freqz(b,a,f,fsim);
>> plot(f,abs(H));

También podría gustarte