

% g for Chebyshev if N odd
close all;home;clc;clear all;
%input
N=5;
Am=0.01; %ripple level in dB
=====================================================================
beta=log(coth(Am/17.37));
gamma=sinh(beta/(2*N));
for k=1:1:N
a(k,1)=sin((2*k-1)*pi/(2*N));
b(k,1)=gamma^2+(sin(k*pi/N))^2;
end
g(1,1)=2*a(1,1)/gamma;
for k=2:1:N;
g(k,1)=(4*a(k-1,1)*a(k,1))/(b(k-1,1)*g(k-1,1));
end
g(N+1,1)=1;
g
Comentários