User`s guide

filtrsdf.mex
Syntax filtersdf (b, a, name, dataNo, rowNo, colNo)
Returns not applicable
This MATLAB subroutine digitally filters SDF data (time capture data).
Caution This MEX-file will modify your SDF file. You may want to make a back up copy of the
SDF file before using this subroutine.
Parameter Definitions
Parameter Definition
b Digital filter coefficients (numerator)
a Digital filter coefficients (denominator)
name name of SDF file to filter
dataNo data result to filter (default = 0, first result)
rowNo row number to filter (default = 0, first row)
colNo column number to filter (default = 0, first column)
All scans in a file are filtered. If the result is a time capture, the filter is cleared only once at the start of
the data. Otherwise, the filter is cleared at the start of each scan.
For a time capture file, dataNo is 0 (captured data is always the first result in the file), rowNo is the
channel number (0 is channel 1, 1 is channel 2), and colNo is always 0. For example, to filter channel 2
of the time capture file ‘TEST.TIM’, specify
filtersdf (b, a, ‘TEST.TIM’, 0, 1);
Note This MEX-file requires the MATLAB Signal Processing Toolbox, because it uses the
‘filter’ function.
MATLAB MEX-Files & M-Files
filtrsdf.mex
7-2