Advertisement
makispaiktis

Transmission lines, losses, pruners

May 27th, 2020 (edited)
1,180
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MatLab 1.37 KB | None | 0 0
  1. clear all
  2. clc
  3.  
  4. % Δεδομένα άσκησης
  5. Zo = 50;
  6. Z1 = 81.5;
  7. Z2 = 80;
  8. Z0 = 50;
  9. Z3 = Z2;
  10. Z4 = Z1;
  11. Zs1 = 129.3;
  12. Zs2 = 24;
  13. Zs3 = 19.7;
  14. Zs4 = Zs2;
  15. Zs5 = Zs1;
  16.  
  17. N = 200; fmin = 0; fmax = 6e9; f0 = 3e9;
  18. f = fmin: ((fmax - fmin)/N): fmax;
  19. L = 1/8;        % Σημαίνει ότι L = lambda/8 for f=f0
  20. beta_L = 2*pi*L*f/f0;
  21.  
  22. % L = λ0 / 8 για f = f0 = 3GHz
  23. % Για νέα συχνότητα, έχω: λ = vp / f     ----> λ / λ0 = f0 / f
  24. % Άρα, έχω: βL = (2π/λ) * L = (2π/λ) * (λο / 8) = 2π * (1/8) * (f/f0)
  25.  
  26. % Ανοιχτοκυκλωμένη
  27. Zin_s5 = -j*Zs5./tan(beta_L);
  28. % Zin5 παράλληλα με τα 50Ω
  29. ZL4 = (Zin_s5*Z0) ./ (Zin_s5 + Z0);
  30. Zin4 = Z4 * (ZL4 + j*Z4*tan(beta_L)) ./ (Z4 + j*ZL4.*tan(beta_L));
  31.  
  32. Zin_s4 = -j*Zs4./tan(beta_L);
  33. ZL3 = (Zin_s4 .* Zin4) ./ (Zin_s4 + Zin4);
  34. Zin3 = Z3 * (ZL3 + j*Z3*tan(beta_L)) ./ (Z3 + j*ZL3.*tan(beta_L));
  35.  
  36. Zin_s3 = -j*Zs3./tan(beta_L);
  37. ZL2 = (Zin_s3 .* Zin3) ./ (Zin_s3 + Zin3);
  38. Zin2 = Z2 * (ZL2 + j*Z2*tan(beta_L)) ./ (Z2 + j*ZL2.*tan(beta_L));
  39.  
  40. Zin_s2 = -j*Zs2./tan(beta_L);
  41. ZL1 = (Zin_s2 .* Zin2) ./ (Zin_s2 + Zin2);
  42. Zin1 = Z1 * (ZL1 + j*Z1*tan(beta_L)) ./ (Z1 + j*ZL1.*tan(beta_L));
  43.  
  44. % 1ος κλαδωτής
  45. Zin_s1 = -j*Zs1./tan(beta_L);
  46. Zin = (Zin_s1 .* Zin1) ./ (Zin_s1 + Zin1);
  47.  
  48. % SWR
  49. S11 =   (Zin - Z0) ./ (Zin + Z0);
  50. S11_dB = 20 * log10(abs(S11));
  51.  
  52. plot(f, S11_dB);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement