Advertisement
Guest User

Untitled

a guest
Oct 12th, 2017
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.22 KB | None | 0 0
  1. >> V2_1kHz = C2Lab1( 1000 )
  2. Error: File: C2Lab1.m Line: 57 Column: 9
  3. Unexpected MATLAB operator.
  4.  
  5. >> V2_1kHz = C2Lab1( 1000 )
  6. Undefined function or variable 'I1'.
  7.  
  8. Error in C2Lab1 (line 57)
  9. V2Vg = ( Z21 .* I1 + Z22 .* I2 ) ./ Vg ;
  10.  
  11. >> a = [30 60 100 200 400 800 2000 4000 10000]
  12.  
  13. a =
  14.  
  15. 30 60 100 200 400 800 2000 4000 10000
  16.  
  17. >> a1
  18. Undefined function or variable 'a1'.
  19.  
  20. >> a[1]
  21. a[1]
  22. Error: Unbalanced or unexpected parenthesis or bracket.
  23.  
  24. >> a
  25.  
  26. a =
  27.  
  28. 30 60 100 200 400 800 2000 4000 10000
  29.  
  30. >> a(1)
  31.  
  32. ans =
  33.  
  34. 30
  35.  
  36. >> V2 = C1Lab1( a )
  37. Undefined function or variable 'C1Lab1'.
  38.  
  39. Did you mean:
  40. >> V2 = C2Lab1( a )
  41. Error: File: C2Lab1.m Line: 57 Column: 78
  42. Unbalanced or unexpected parenthesis or bracket.
  43.  
  44. >> V2 = C2Lab1( a )
  45.  
  46. V2 =
  47.  
  48. Columns 1 through 6
  49.  
  50. 3.5143 - 0.1699i 3.4899 - 0.3375i 3.4333 - 0.5533i 3.1910 - 1.0286i 2.4883 - 1.6042i 1.3230 - 1.7059i
  51.  
  52. Columns 7 through 9
  53.  
  54. 0.3093 - 0.9969i 0.0828 - 0.5336i 0.0135 - 0.2177i
  55.  
  56. >> figure (1);
  57. >> plot( a , abs(V2));
  58. Warning: MATLAB has disabled some advanced graphics rendering features by switching to software OpenGL. For more information,
  59. click here.
  60. >> grid;
  61. >> figure(2);
  62. >> loglog(a , abs(V2));
  63. >> GRID;
  64. Cannot find an exact (case-sensitive) match for 'GRID'
  65.  
  66. The closest match is: grid in C:\Program
  67. Files\MATLAB\R2016b\toolbox\matlab\graph2d\grid.m
  68.  
  69. Did you mean:
  70. >> grid;
  71. >> abs(a)
  72.  
  73. ans =
  74.  
  75. 30 60 100 200 400 800 2000 4000 10000
  76.  
  77. >> abs(V2)
  78.  
  79. ans =
  80.  
  81. 3.5184 3.5061 3.4776 3.3526 2.9606 2.1588 1.0437 0.5399 0.2181
  82.  
  83. >> angle(V2)
  84.  
  85. ans =
  86.  
  87. -0.0483 -0.0964 -0.1598 -0.3118 -0.5726 -0.9111 -1.2700 -1.4169 -1.5088
  88.  
  89. >> V2_angle
  90. Undefined function or variable 'V2_angle'.
  91.  
  92. >> angle(V2) * 180 / pi
  93.  
  94. ans =
  95.  
  96. -2.7681 -5.5234 -9.1556 -17.8661 -32.8089 -52.2035 -72.7644 -81.1828 -86.4495
  97.  
  98. >> a = [30 60 100 200 400 800 2000 4000 10000]
  99.  
  100. a =
  101.  
  102. 30 60 100 200 400 800 2000 4000 10000
  103.  
  104. >> a = [30 60 100 200 400 800 2000 4000 7000 10000]
  105.  
  106. a =
  107.  
  108. Columns 1 through 9
  109.  
  110. 30 60 100 200 400 800 2000 4000 7000
  111.  
  112. Column 10
  113.  
  114. 10000
  115.  
  116. >> V2 = C2Lab1( a )
  117.  
  118. V2 =
  119.  
  120. Columns 1 through 5
  121.  
  122. 3.5143 - 0.1699i 3.4899 - 0.3375i 3.4333 - 0.5533i 3.1910 - 1.0286i 2.4883 - 1.6042i
  123.  
  124. Columns 6 through 10
  125.  
  126. 1.3230 - 1.7059i 0.3093 - 0.9969i 0.0828 - 0.5336i 0.0275 - 0.3098i 0.0135 - 0.2177i
  127.  
  128. >> figure (1);
  129. >> plot( a , abs(V2));
  130. >> grid;
  131. >> loglog(a , abs(V2));
  132. >> grid;
  133. >> angle(V2) * 180 / pi
  134.  
  135. ans =
  136.  
  137. -2.7681 -5.5234 -9.1556 -17.8661 -32.8089 -52.2035 -72.7644 -81.1828 -84.9347 -86.4495
  138.  
  139. >> abs(V2)
  140.  
  141. ans =
  142.  
  143. 3.5184 3.5061 3.4776 3.3526 2.9606 2.1588 1.0437 0.5399 0.3110 0.2181
  144.  
  145. >> figure (1);
  146. >> plot( a , abs(V2));
  147. >> grid;
  148. >> figure(2);
  149. >> loglog(a , abs(V2));
  150. >> grid;
  151. >> loglog(a , abs(V2));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement