Advertisement
Guest User

Untitled

a guest
Nov 22nd, 2017
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MatLab 1.46 KB | None | 0 0
  1. clc;clear all;
  2. %parametros
  3. n=5;
  4. R=50;
  5. f1=1.8e9;
  6. f2=2.6e9;
  7. fc=(f1+f2)/2;
  8. fbw=(f2-f1)/fc;
  9. Er=4.7;
  10. h=1.6;
  11. %valores g
  12. g=[0.6180,1.6180,2,1.6180,0.6180,1];
  13. %Equações de admitancia
  14. ZoJ1=sqrt((pi*fbw)/(2*g(1)));
  15. ZoJn=(pi*fbw)./(2*sqrt(g(2:n).*g(1:(n-1))));
  16. ZoJf=sqrt((pi*fbw)/(2*g(n)*g(n+1)));
  17. ZoJ=[ZoJ1,ZoJn,ZoJf];
  18. %Impedâncias caracteristicas
  19. ZoE=R*(1+ZoJ+(ZoJ).^2);
  20. ZoO=R*(1-ZoJ+(ZoJ).^2);
  21. %Impedâncias equivalentes a linha unica
  22. ZoSE=ZoE/2;
  23. ZoSO=ZoO/2;
  24. %cálculo de w/h SE
  25. A=(ZoSE/60).*sqrt((Er+1)/2)+((Er-1)/(Er+1))*(0.23+0.11/Er);
  26. B=377*pi./(2*ZoSE*sqrt(Er));
  27. Wh_SE=(8*exp(A))./(exp(2*A)-2);
  28. % Wh_SE=(2/pi).*(B-1-log(2*B-1)+(((Er-1)/(2*Er))*(log(B-1)+0.39-0.61/Er)));
  29. %cálculo de w/h SO
  30. A=(ZoSO/60).*sqrt((Er+1)/2)+(((Er-1)/(Er+1))*(0.23+(0.11/Er)));
  31. B=(377*pi)./(2*ZoSO*sqrt(Er));
  32. Wh_SO=(8*exp(A))./(exp(2*A)-2);
  33. % Wh_SO=(2/pi).*(B-1-log(2*B-1)+(((Er-1)/(2*Er))*(log(B-1)+0.39-0.61/Er)));
  34. %cálculo de s/h
  35. num=cosh((pi/2).*Wh_SE)+cosh((pi/2).*Wh_SO)-2;
  36. den=cosh((pi/2).*Wh_SO)-cosh((pi/2).*Wh_SE);
  37. sh = (2/pi).*acosh(num./den);
  38. %cálculo de w/h
  39. syms wh_n;
  40. wh_n_num=0;
  41. wh = zeros(1,length(sh));
  42. for i=1:length(sh)
  43. sh_n = sh(i);
  44. Wh_SE_n = Wh_SE(i);
  45. g = cosh(pi*sh_n/2);
  46. d = cosh((pi*wh_n)+(pi*sh_n/2));
  47. wh_n_num = eval(solve(Wh_SE_n == (2/pi)*acosh((2.*d-g+1)/(g+1)),wh_n));
  48. wh(i) = wh_n_num(1);
  49. end
  50. %Ereff
  51. Erff=((Er+1)./2)+(((Er-1)./2).*(1./sqrt((1+12.*(1./wh)))))
  52. %Dimmensions in mm
  53. Wmm = wh*h
  54. Smm = sh*h
  55. Lmm=3e8./(4.*fc.*sqrt(Erff))*1000
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement