Nitin400

LTSpice to Matlab

Aug 3rd, 2019
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 1.23 KB | None | 0 0
  1. clear all;
  2. close all;
  3. clc
  4. A=load('lab301.txt');
  5. B=load('lab302.txt');
  6. C=load('lab303.txt');
  7. D=load('lab304.txt');
  8. E=load('lab305.txt');
  9. F=load('lab306.txt');
  10. G=load('lab307.txt');
  11. H=load('lab308.txt');
  12. I=load('lab309.txt');
  13. J=load('lab310.txt');
  14. K=load('lab311.txt');
  15. L=load('lab312.txt');
  16. M=load('lab313.txt');
  17. N=load('lab314.txt');
  18. O=load('lab315.txt');
  19. P=load('lab316.txt');
  20. x0 = A(:,1);
  21. y0 = A(:,2);
  22. x1 = B(:,1);
  23. y1 = B(:,2);
  24. x2 = C(:,1);
  25. y2 = C(:,2);
  26. x3 = D(:,1);
  27. y3 = D(:,2);
  28. plot(x0,y0)
  29. hold on
  30. plot(x1,y1)
  31. hold on
  32. plot(x2,y2)
  33. hold on
  34. plot(x4,y4)
  35. hold on
  36. x4 = E(:,1);
  37. y4 = E(:,2);
  38. plot(x4,y4)
  39. hold on
  40. x5 = F(:,1);
  41. y5 = F(:,2);
  42. plot(x5,y5)
  43. hold on
  44. x6 = G(:,1);
  45. y6 = G(:,2);
  46. plot(x6,y6)
  47. hold on
  48. x7 = H(:,1);
  49. y7 = H(:,2);
  50. plot(x7,y7)
  51. hold on
  52. x8 = H(:,1);
  53. y8 = H(:,2);
  54. plot(x8,y8)
  55. hold on
  56. x9 = I(:,1);
  57. y9 = I(:,2);
  58. plot(x9,y9)
  59. hold on
  60. x10 = J(:,1);
  61. y10 = J(:,2);
  62. plot(x10,y10)
  63. hold on
  64. x11 = K(:,1);
  65. Y11 = K(:,2);
  66. plot(x11,y11)
  67. hold on
  68. x12 = L(:,1);
  69. y12 = L(:,2);
  70. plot(x12,y12)
  71. hold on
  72. x13 = M(:,1);
  73. y13 = M(:,2);
  74. plot(x13,y13)
  75. hold on
  76. x14 = N(:,1);
  77. y14 = N(:,2);
  78. plot(x14,y14)
  79. hold on
  80. x15 = O(:,1);
  81. y15 = O(:,2);
  82. plot(x15,y15)
  83. hold on
  84. x16 = P(:,1);
  85. y16 = P(:,2);
  86. plot(x16,y16)
Add Comment
Please, Sign In to add comment