Ask Me Help Desk

Ask Me Help Desk (https://www.askmehelpdesk.com/forum.php)
-   C++ (https://www.askmehelpdesk.com/forumdisplay.php?f=439)
-   -   Butter Worth filter implementation in C++ (https://www.askmehelpdesk.com/showthread.php?t=103073)

  • Jun 21, 2007, 02:49 AM
    anuragvelekkattu
    Butter Worth filter implementation in C++
    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
  • Jun 23, 2007, 06:05 AM
    asterisk_man
    We can probably help with porting but you'll have to provide the definition of butter() and filter(). Check any documentation you've got.

  • All times are GMT -7. The time now is 01:48 AM.