Documentos de Académico
Documentos de Profesional
Documentos de Cultura
>> 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));
>> 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));
>> 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));
>> 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));
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
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
N
Wn
Columns 1 through 5
0.0051
0 -0.0406
Columns 1 through 5
0 0.1422
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));
Columns 6 through 9
Columns 6 through 9
>> 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));