Home > freetb4matlab > signal > filtic.m

filtic

PURPOSE ^

% Set initial condition vector for filter function

SYNOPSIS ^

function zf = filtic(b,a,y,x)

DESCRIPTION ^

% Set initial condition vector for filter function
% The vector zf has the same values that would be obtained 
% from function filter given past inputs x and outputs y
%
% The vectors x and y contain the most recent inputs and outputs
% respectively, with the newest values first:
%
% x = [x(-1) x(-2) ... x(-nb)], nb = length(b)-1
% y = [y(-1) y(-2) ... y(-na)], na = length(a)-a
%
% If length(x)<nb then it is zero padded
% If length(y)<na then it is zero padded
%
% zf = filtic(b, a, y)
%    Initial conditions for filter with coefficients a and b
%    and output vector y, assuming input vector x is zero
%
% zf = filtic(b, a, y, x)
%    Initial conditions for filter with coefficients a and b
%    input vector x and output vector y
%

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Fri 22-May-2009 15:13:00 by m2html © 2003