anuragvelekkattu
Jun 21, 2007, 02:49 AM
Hello Guys,
I'm in need of implementing butter worth filter in C++. Problem is I don't know about the butter worth filter internals.
I have a code in MathLab which used to filter some ECG signals( Echo Cardio Gram) this will be used further to process. I need to port this code portion to VC++.
The code snippet is
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%
%%% Frequency Analysis and Pre Filtering
%%% Type 4th order Butterworth (fixed) & fc =30Hz
[BB1,AA1] =butter(4,30*SamplingTime/1000); % fc=30Hz
%%% ECG waveform
EW1 =filter(BB1,AA1,NECG);
Where NECG is an array of 640 double values.
Any help to this porting will be highly appreciated.
Anurag
I'm in need of implementing butter worth filter in C++. Problem is I don't know about the butter worth filter internals.
I have a code in MathLab which used to filter some ECG signals( Echo Cardio Gram) this will be used further to process. I need to port this code portion to VC++.
The code snippet is
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%
%%% Frequency Analysis and Pre Filtering
%%% Type 4th order Butterworth (fixed) & fc =30Hz
[BB1,AA1] =butter(4,30*SamplingTime/1000); % fc=30Hz
%%% ECG waveform
EW1 =filter(BB1,AA1,NECG);
Where NECG is an array of 640 double values.
Any help to this porting will be highly appreciated.
Anurag