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

  1. %
  2. %LTITR    Linear time-invariant time response kernel.
  3. %    X = LTITR(A,B,U) calculates the time response of the
  4. %    system:
  5. %         x[n+1] = Ax[n] + Bu[n]
  6. %
  7. %    to input sequence U. Matrix U must have as many columns as
  8. %    there are inputs, u. Each row of U corresponds to a new
  9. %    time point. LTITR returns a matrix X with as many columns
  10. %    as there are outputs y, and with LENGTH(U) rows.
  11. %    LTITR(A,B,U,X0) can be used if initial conditions exist.
  12. %    Here is what it implements, in high speed:
  13. %
  14. %        for i=1:n
  15. %            x(:,i) = x0;
  16. %                x0 = a * x0 + b * u(:,i);
  17. %        end
  18. %        x = x.';
  19.  
  20. %    Copyright (c) 1986-93 by the MathWorks, Inc.
  21.  
  22. % built-in function
  23.