How to use multiple filters for filtering a signal
15 views (last 30 days)
Show older comments
Hi.
I have a question. I have an ECG signal that needs filtering and we have to use a high pass low pass and a stop band filter with the command fir1. For the filter design I get the following commands.
% x is the original signal
fs=1000;
FcutoffH=180; % cutoff frequency of the filter
FcutoffL=1.4;
Fband=60;
w=Fband/fN;
wn=[w-0.001 w+0.001];
wnL=FcutoffL/fN;
wnH=FcutoffH/fN; % normalised cutoff frequency
filtorder=68;
bH=fir1(filtorder,wnH,'high');
bL=fir1(filtorder,wnL,'low');
band=fir1(filtorder,wn,'stop');
a=1;
and for the actual filtering i am using the following.
xL=filter(bL,a,x);
xH=filter(bH,a,x);
xB=filter(band,a,x);
The question is how to combine these signals in order to get the overall filtered one?
0 Comments
Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!