User`s guide

Filtering Data
filter = idm
filter = {num,den}
filter = {A,B,C,D}
idm
is a SISO idmodel or LTI object. For more information about LTI objects,
see the Control System Toolbox documentation.
{num,den} denes the lter as a transfer function as a cell array of numerator
and denominator lter coefcients.
{A,B,C,D} is a cell array of SISO state-space matrices.
Specically for frequency-domain data, you specify the frequency response
of the lter:
filter = Wf
Here, Wf is a vector of real or complex values that dene the lter
frequency response, where the inputs and outputs of
data at frequency
data.Frequency(kf) are multip lied by Wf(kf). Wf is a column v ector with
the length equal to the number of frequencies in
data.
When
data contains several experiments, Wf is a cell array with the length
equal to the number of experiments in
data.
Causal and Noncausal Filters
For time-domain data, the lteringiscausalbydefault. Causallters
typically introduce a phase shift in the results. To use a noncausal zero-phase
lter (corresponding to
filtfilt in the Sig nal Processing T o o lb ox product),
specify a third argument in
idfilt:
fdata = idfilt(data,filter,'noncausal')
For frequen cy-do m ain data, th e sign a ls are multiplied by the frequency
response of the lter. With the lters dened as passband lters, thi s
calculation gives ideal, zero-phase ltering (“brick wall lters”). Frequencies
that have been assign ed zero weight by the lter (outside the passband or
via frequency response) are removed.
1-113