Sie sind auf Seite 1von 1

A=input('enter stopband attenuation A in dB ');

if A>21
D=(A-7.95)/14.36;
else
D=.922;
end
if A>=50
alpha=.1102*(A-8.7);
elseif A>21 & A<50
p=power((A-21),.4);
alpha=(.5842*p)+.07886*(A-21);
else
alpha=0;
end
N=input('enter number of the elements ');
psi=(2*pi*D)/(N-1);
M=(N-1)/2;
for m=1:2*M+1
z=alpha*sqrt(1-((m-M-1)*(m-M-1))/(M*M));
p(m)=besseli(0,z);
q(m)=besseli(0,alpha);
w(m)=p(m)./q(m);
end
psib=(5*pi)/180;
psio(25*pi)/180;
for m=1:2*M+1
a(m)=w(m)*exp(-m*psio*i)*sin(psib*m)/(pi*m);
end

Das könnte Ihnen auch gefallen