|
Contents | Previous | Next | Subchapters |
| Syntax |
filter(a, b, x, s) |
| See Also | mlmode_filter , conv , polmul , kalman , arcov |
na,
nb,
nx
and
ns,
be the lengths of
a, b, x, and s
respectively.
The value ns must satisfy the conditions
ns > na - 1,
ns > nb - 1,
and
ns < nx.
The return vector y
has length nx, and
if i < ns, y = s
i i
if i > ns, y = b x + b x + . . . + b x
i 1 i 2 i-1 nb i-nb+1
- a y - . . . - a y
2 i-1 na i-na+1
Note that the first element of a is not used.
x = {1, 2, 3}
a = {1, -1}
b = {1, 1}
s = 0
filter(a, b, x, s)
O-Matrix will respond
{
0
3
8
}
Note that
y = s = 0
1 1
y = x + x + y = 3
2 2 1 1
y = x + x + y = 8
3 3 2 2
(Also note that the first element of a was not used.)