nivs

Untitled

Dec 18th, 2012
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. def Initial((A, B, C, D), x0, T):
  2.     ss = StateSpace(A, B, C, D)
  3.     T = arange(0, 7, 0.001) # шаг построения
  4.     x0 = array([1.0, 1.0, 1.0]) # начальные условия
  5.  
  6.     iss = initial(ss, T, x0)
  7.  
  8.     plot(iss[1], iss[0])
  9.     title('initial() construction')
  10.     xlabel('t, s.')
  11.     ylabel('y(t)')
  12.     grid(color='g', linestyle='--')
  13.     show()
Advertisement
Add Comment
Please, Sign In to add comment