Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: filtfilt function
Date: Mon, 19 Oct 2009 14:34:03 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 17
Message-ID: <hbhtcr$b1$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-03-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1255962843 353 172.30.248.38 (19 Oct 2009 14:34:03 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Mon, 19 Oct 2009 14:34:03 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1077853
Xref: news.mathworks.com comp.soft-sys.matlab:578424


Hi,

I want to create a 4th order zero-phase digital butterworth filter with a cutoff frequency of 10Hz. Sofar I was using:

Fs=1000; % sample frequency
Fc=10; %cutoff frequency
[B,A]=butter(4,Fc/(Fs/2));    
signal_filt=filtfilt(B,A,signal);

Now, I have two questions:
1. I just read in the help function that the "filter order is double the order of the filter specified by B and A".
Does that mean that I am currently using a 8th order zero-phase digital butterworth filter with a cutoff of 10Hz??

2. Talking about the cutoff frequency. Filtering also in the reverse direction, does this process decrease the defined cutoff fc (10Hz)?

Your help for clarification is much appreciated.
Thanks