home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 10 / 10.iso / l / l455 / 10.ddi / CONTROL.DI$ / CTRB.M < prev    next >
Encoding:
Text File  |  1993-03-11  |  272 b   |  16 lines

  1. function co = ctrb(a,b)
  2. %CTRB    Form controllability matrix.
  3. %    CTRB(A,B) returns the controllability matrix
  4. %    Co = [B AB A^2B ...]
  5. %
  6. %    See also: CTRBF.
  7.  
  8. %    Copyright (c) 1986-93 by the MathWorks, Inc.
  9.  
  10. [m,n] = size(a);
  11. co = b;
  12. for i=1:n-1
  13.     co = [b a*co];
  14. end
  15.  
  16.