Advertisement
Guest User

Untitled

a guest
Mar 30th, 2017
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MatLab 2.60 KB | None | 0 0
  1. >> s = tf ('s')
  2.  
  3. Transfer function:
  4. s
  5.  
  6. >> gh = (s+5)/((s-6)*(s-3))
  7.  
  8. Transfer function:
  9.     s + 5
  10. --------------
  11. s^2 - 9 s + 18
  12.  
  13. >> rlocus(gh)
  14.  
  15. >> gh = 1/((s-6)*(s-3))
  16.  
  17. Transfer function:
  18.       1
  19. --------------
  20. s^2 - 9 s + 18
  21.  
  22. >> rlocus(gh)
  23.  
  24. >> gh = ((s+5)*(s+6))/((s-6)*(s-3))
  25.  
  26. Transfer function:
  27. s^2 + 11 s + 30
  28. ---------------
  29. s^2 - 9 s + 18
  30.  
  31. >> rlocus(gh)
  32. >> gh = ((s+5)*(s+6))/((s-6))
  33.  
  34. Transfer function:
  35. s^2 + 11 s + 30
  36. ---------------
  37.      s - 6
  38.  
  39. >> rlocus(gh)
  40. >> gh = ((s+5)*(s+6))/((s+6))
  41.  
  42. Transfer function:
  43. s^2 + 11 s + 30
  44. ---------------
  45.      s + 6
  46.  
  47. >> rlocus(gh)
  48. >> gh = ((s+5)*(s+6))/((s+10))
  49.  
  50. Transfer function:
  51. s^2 + 11 s + 30
  52. ---------------
  53.     s + 10
  54.  
  55. >> rlocus(gh)
  56. >> gh = ((s+5)*(s+6))/((s+10)*(s+19))
  57.  
  58. Transfer function:
  59. s^2 + 11 s + 30
  60. ----------------
  61. s^2 + 29 s + 190
  62.  
  63. >> rlocus(gh)
  64. >> gh = ((s+5)*(s+6))/((s+10)*(s*s+19))
  65.  
  66. Transfer function:
  67.      s^2 + 11 s + 30
  68. -------------------------
  69. s^3 + 10 s^2 + 19 s + 190
  70.  
  71. >> rlocus(gh)
  72.  
  73. >> gh = ((s+5)*(s+6))/((s+10)*(s*s+19*s+3))
  74.  
  75. Transfer function:
  76.      s^2 + 11 s + 30
  77. -------------------------
  78. s^3 + 29 s^2 + 193 s + 30
  79.  
  80. >> rlocus(gh)
  81. >> gh = ((s+5)*(s+6))/((s+10)*(s*s+50*s+3))
  82.  
  83. Transfer function:
  84.      s^2 + 11 s + 30
  85. -------------------------
  86. s^3 + 60 s^2 + 503 s + 30
  87.  
  88. >> rlocus(gh)
  89. >> gh = ((s+5)*(s+6))/((s+10)*(s*s+2*s+2))
  90.  
  91. Transfer function:
  92.     s^2 + 11 s + 30
  93. ------------------------
  94. s^3 + 12 s^2 + 22 s + 20
  95.  
  96. >> rlocus(gh)
  97. >> gh = ((s+5))/((s+10)*(s*s+2*s+2))
  98.  
  99. Transfer function:
  100.          s + 5
  101. ------------------------
  102. s^3 + 12 s^2 + 22 s + 20
  103.  
  104. >> rlocus(gh)
  105. >> gh = ((s+5)*(s+5)*(s+5))/((s+10)*(s*s+2*s+2))
  106.  
  107. Transfer function:
  108. s^3 + 15 s^2 + 75 s + 125
  109. -------------------------
  110. s^3 + 12 s^2 + 22 s + 20
  111.  
  112. >> rlocus(gh)
  113. >> gh = ((s+5)*(s+2)*(s+8))/((s+10)*(s*s+2*s+2))
  114.  
  115. Transfer function:
  116. s^3 + 15 s^2 + 66 s + 80
  117. ------------------------
  118. s^3 + 12 s^2 + 22 s + 20
  119.  
  120. >> rlocus(gh)
  121. >> gh = ((s+5)*(s+2)*(s+8))/((s+10)*(s*s+2*s+2)(s-2))
  122. ??? gh = ((s+5)*(s+2)*(s+8))/((s+10)*(s*s+2*s+2)(s-2))
  123.                                                 |
  124. Error: Unbalanced or unexpected parenthesis or bracket.
  125.  
  126. >> gh = ((s+5)*(s+2)*(s+8))/((s+10)*(s*s+2*s+2)*(s-2))
  127.  
  128. Transfer function:
  129.     s^3 + 15 s^2 + 66 s + 80
  130. --------------------------------
  131. s^4 + 10 s^3 - 2 s^2 - 24 s - 40
  132.  
  133. >> rlocus(gh)
  134. >> gh = ((s+5)*(s+3.5)*(s+2)*(s+8))/((s+10)*(s*s+2*s+2)*(s-2))
  135.  
  136. Transfer function:
  137. s^4 + 18.5 s^3 + 118.5 s^2 + 311 s + 280
  138. ----------------------------------------
  139.     s^4 + 10 s^3 - 2 s^2 - 24 s - 40
  140.  
  141. >> rlocus(gh)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement