%Butterworth és Csebisev szűrő fokszám számítás
Rp=1;
Rs=40;
Wp=.30;
Ws=.4;
e=sqrt(10^(Rp/10)-1)
%NB=log10(10^(Rs/10)-1)/2/log10(Ws/Wp)-log10(e)/log10(Ws/Wp)
NB=log10((sqrt(10^(Rs/10)-1))/e)/log10(Ws/Wp)           %Butterworth
[N,Wn]=buttord(Wp,Ws,Rp,Rs);[b,a]=butter(N,Wn);N
NC=acos(sqrt(10^(Rs/10)-1)/e)/acos(Ws/Wp)               %Csebisev
[N,Wn]=cheb1ord(Wp,Ws,Rp,Rs);[b,a]=cheby1(N,Rp,Wn);N