home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 10 / 10.iso / l / l460 / 2.ddi / DATAFUN.DI$ / FILTER.M < prev    next >
Encoding:
Text File  |  1993-03-07  |  643 b   |  18 lines

  1. function y = filter(b,a,x)
  2. %FILTER    Digital filter.
  3. %    Y = FILTER(B, A, X) filters the data in vector X with the
  4. %    filter described by vectors A and B to create the filtered
  5. %    data Y.  The filter is a "Direct Form II Transposed"
  6. %    implementation of the standard difference equation:
  7. %
  8. %    y(n) = b(1)*x(n) + b(2)*x(n-1) + ... + b(nb+1)*x(n-nb)
  9. %                     - a(2)*y(n-1) - ... - a(na+1)*y(n-na)
  10. %
  11. %    [Y,Zf] = FILTER(B,A,X,Zi) gives access to initial and final
  12. %    conditions, Zi and Zf, of the delays.
  13. %
  14. %    See also FILTFILT in the Signal Processing Toolbox.
  15.  
  16. %    Copyright (c) 1984-93 by The MathWorks, Inc.
  17. %    Built-in function.
  18.