You are on page 1of 1

N = input ('Enter The Number Of Array Elements : ') ; lambda = input ('Enter The Value Of Lambda (c/f) in meters:

') ; d=input('Enter the spacing between antenna in meters') B =(2*pi*d/lambda); %Plot of The Output Polar u = 0:0.01:2*pi ; %0<u<2*pi H=0; for I = 1 : N H = H + ( C(I) .* exp ( j * ( I-1 ) * B * cos (u) ) ) ; end F = abs ( H ) ; figure ( 1 ) , polar ( u , F ) ;

You might also like