Advertisement
Guest User

Untitled

a guest
Dec 12th, 2019
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.41 KB | None | 0 0
  1. %Vertical Radiation Pattern for an Array of Linear Antenas
  2.  
  3. clear all
  4.  
  5. lambda=10; %m
  6. k=2*pi/lambda; %wavenumber
  7. RP=100; %m - distance from origin (observation point)
  8. C=j*60/RP*exp(-j*k*RP)/RP; %constant
  9.  
  10. %ANTENNAS POSITIONS AND FEED
  11. rp=[lambda/8 lambda/8];
  12. phip=[-pi/2 pi/2];
  13. z=[0 0];
  14.  
  15. %ANTENNAS LENGTHS
  16. L=[lambda/2 lambda/2];
  17.  
  18. l=L/2; %half-length of antennas
  19.  
  20. %CURRENT
  21. I0=[1 exp(j*pi/2)];
  22.  
  23. %RESOLUTION
  24. Rez=100; %angle resolution=pi/Rez
  25. theta=linspace(eps,pi-eps,Rez);
  26. phi1=pi/2;
  27. phi2=phi1+pi;
  28.  
  29. E1=zeros(1,length(theta)); %to be populated
  30.  
  31. for th=1:length(theta),
  32. A1=rp*sin(theta(th)).*cos(phi1-phip)+z*cos(theta(th));
  33. A2=exp(j*k*A1);
  34. B1=cos(k*l*cos(theta(th)))-cos(k*l);
  35. B2=B1/sin(theta(th));
  36. EE=C*I0.*A2.*B2;
  37. E11=sum(EE);
  38. E1(th)=E11;
  39. end
  40.  
  41. E2=zeros(1,length(theta)); %to be populated
  42.  
  43. for th=1:length(theta),
  44. A1=rp*sin(theta(th)).*cos(phi2-phip)+z*cos(theta(th));
  45. A2=exp(j*k*A1);
  46. B1=cos(k*l*cos(theta(th)))-cos(k*l);
  47. B2=B1/sin(theta(th));
  48. EE=C*I0.*A2.*B2;
  49. E12=sum(EE);
  50. E2(th)=E12;
  51. end
  52.  
  53. E=[E1 E2]; %for normalization
  54. AE=abs(E); %amplitude
  55. AEM=max(AE); %maximum of the amplitudes
  56. RE1=abs(E1)/AEM; %for phi1
  57. RE2=abs(E2)/AEM; %for phi2
  58.  
  59. %representation angles(plots)
  60. phirep1=pi/2-theta; %for phi1
  61. phirep2=theta+pi/2; %for phi2
  62.  
  63. figure(3)
  64. polar(phirep2,RE2)
  65. hold
  66. polar(phirep1,RE1)
  67. hold
  68. title('Vertical radiation pattern')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement