Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Question on filtering
Date: Sun, 4 May 2008 12:35:03 +0000 (UTC)
Organization: DW-TV
Lines: 20
Message-ID: <fvkahn$mob$1@fred.mathworks.com>
References: <fvenjf$b10$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-02-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1209904503 23307 172.30.248.37 (4 May 2008 12:35:03 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Sun, 4 May 2008 12:35:03 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1095707
Xref: news.mathworks.com comp.soft-sys.matlab:466501



I would create a simple filter by using

>> fdatool

say simple IIR-butterworth. you can export the filter from
the tool as numerator (a) and denominator (b) or as a
filter-object.

then you can filter your signal by computing

>> filter(b,a,signal) or  >> filter(obj, signal)


when possible, it always is a good idea to keep
computational effort low. --> so perhaps you first do the
downsampling and then you filter the the shorter signal.
for downsampling you can find good ways in the help or you
write your own routine using i.e. a simple fft algorithm.

Regards, Lars