See other catalogues for
The MathWorks
You may also be interested in
Text version of the page
| | | | | | | | | | | | | | | |
| | | |
| | | Filtering Data | | |
| | | |
| | | Filtering Data | | |
| | | |
| | | In this section... "Introduction" on page 1-11 "Filter Function" on page 1-11 "Example: Moving Average Filter" on page 1-12 "Example: Discrete Filter" on page 1-13 | | |
| | | |
| | | Introduction A variety of MATLAB® IEEE® functions help you work with difference equations and filters to shape the variations in the raw data. These functions operate on both vectors and matrices. You can filter data to smooth out high-frequency fluctuations or remove periodic trends of a specific frequency. A vector input represents a single, sampled data signal (or sequence). For a matrix input, each signal corresponds to a column in the matrix and each data sample is a row. | | |
| | | |
| | | Filter Function The function y = filter(b,a,x) creates filtered data y by processing the data in vector x with the filter described by vectors a and b. The filter function is a general tapped delay-line filter, described by the difference equation a(1) y(n) = 6(1) x(n) + b(2) x(n -1) +... + b( Nb) x(n - Nb +1) - a(2)y(n -1) -... - a(Na)y(n - Na +1) Here, n is the index of the current sample, Na is the order of the polynomial described by vector a,and Nb is the order of the polynomial described by | | |
| | | |
| | | 1-11 | | |
| | | |
| | | | | | | | | | | | | | | |