Advertisement
Guest User

Untitled

a guest
Aug 28th, 2016
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MatLab 1.79 KB | None | 0 0
  1. %impedancyjna
  2. U = 1.081;
  3. C1= 10*10^(-9);
  4. C2= 47*10^(-9);
  5. RW = 50;
  6. RS = 100;
  7. R = 2200; %symbolizuje rezystory r11 i r12 maja one taka sama wartosc
  8. f = [7000, 13000, 19000];
  9. format long;
  10.  
  11. %Obliczamy wartości teoretyczne na podstawie schamatu obwodu
  12. f = [7000, 13000, 19000];
  13. format long;
  14. Xc1 = 1./(j*2*C1*pi.*f),
  15. Xc2 = 1./(j*2*C2*pi.*f),
  16. z11t=Xc1+R,
  17. z12t=-R,
  18. z21t=-R,
  19. z22t=Xc2+R,
  20. % na podstawie wartości zmierzonych w labpratorium wyznaczamy macierz
  21. % admitancyjna
  22.  
  23. %Z11 = U1/I1 | dla i2 = 0
  24. Z11u1 = [1.043,1.024,1.015];
  25. Z11u1fi = [-1.9,-1.7,-1.4];
  26. Z11u1fi=Z11u1fi.*(pi/180);
  27. for n=1:3
  28. complexZ11u1(n)=Z11u1(n)*(cos(Z11u1fi(n))+j*sin(Z11u1fi(n)));
  29. end;
  30.  
  31. UrZ11 = U - complexZ11u1;
  32. I1Z11=UrZ11./(RS+RW);
  33. Z11 = complexZ11u1./I1Z11,
  34.  
  35. %Z12 = U1/I2 | dla i1 = 0
  36. Z12u1=[0.962,0.979,0.982];
  37. Z12u1fi=[-0.9,-0.6,-0.5];
  38. Z12u1fi=Z12u1fi.*(pi/180);
  39. Z12uR2=[1.011,1.008,1.007];
  40. Z12uR2fi=[-0.9,-0.6,-0.5];
  41. Z12uR2fi=Z12uR2fi.*(pi/180);
  42.  
  43. for n=1:3
  44. complexZ12u1(n)=Z12u1(n)*(cos(Z12u1fi(n))+j*sin(Z12u1fi(n)));
  45. complexZ12uR2(n)=Z12uR2(n)*(cos(Z12uR2fi(n))+j*sin(Z12uR2fi(n)));
  46. end;
  47. Z12i2 = complexZ12uR2./(RS+RW);
  48. Z12 = complexZ12u1./Z12i2,
  49.  
  50. %Z21 = U2/i1 | i2 = 0
  51. Z21u2 = [1.081,1.081,1.081];
  52. Z21u2fi = [0,0,0];
  53. Z21u2fi=Z21u2fi.*(pi/180);
  54. Z21uR1=[0.687,0.862,0.921];
  55. Z21uR1fi=[45.7,29,20.8];
  56. Z21uR1fi=Z21uR1fi.*(pi/180);
  57.  
  58. for n=1:3
  59. complexZ21u2(n)= Z21u2(n)*(cos(Z21u2fi(n))+j*sin(Z21u2fi(n)));
  60. complexZ21uR1(n)= Z21uR1(n)*(cos(Z21uR1fi(n))+j*sin(Z21uR1fi(n)));
  61. end;
  62. Z21i1 = complexZ21uR1./RS;
  63. Z21 = complexZ21u2./Z21i1,
  64.  
  65. %Z22 = u2/i2 | i1 = 0
  66. Z22u2=[1.011,1.008,1.007];
  67. Z22u2fi=[-0.9,-0.6,-0.5];
  68. Z22u2fi=Z22u2fi.*(pi/180);
  69.  
  70. for n=1:3
  71. complexZ22u2(n)=Z22u2(n)*(cos(Z22u2fi(n))+j*sin(Z22u2fi(n)));
  72. end;
  73.  
  74. UrZ22 = U - complexZ22u2;
  75. I2Z22=UrZ22./(RS+RW);
  76. Z22 = complexZ22u2./I2Z22,
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement