IIR Band Pass Filter Design for Signal Noise Cancellation

7 ビュー (過去 30 日間)
C PRASAD
C PRASAD 2022 年 2 月 21 日
I have an EMG signal and I wolud like to Supress the noise by using Filter.The Filter is Butterworth Band Pass filter with cut-off frequency is 5Hz and 375Hz.I wolu like to know How to design a filter to apply on the EMG signal.

採用された回答

Sulaymon Eshkabilov
Sulaymon Eshkabilov 2022 年 2 月 21 日
This is quite stratightforward issue. You can design a band-pass filter using the help given here: https://www.mathworks.com/help/signal/ref/butter.html
--
fs = 5e3; % Sampling frequency of your signal
n = 3; % Filter ORDER. Be careful while choosing it
Wn = [5 375]/fs; % Frequency band-pass
ftype = 'bandpass';
% Transfer Function Design
[b,a] = butter(n,Wn,ftype);
t=linspace(0, 1, fs);
S = 2.3*sin(2*pi*5*t)+.5*sin(2*pi*375*t)+1.25*sin(2*pi*475*t); % It has 3 freq components, viz. 5, 375, 475 Hz
SF = filter(b,a,S);
plot(t, S, 'r'), hold on; grid on
plot(t, SF, 'b'), legend('Raw data', 'Filtered data with band-pass filter', 'location', 'best')
xlabel('time, [sec]'),
ylabel('Signal Magnitude')
  2 件のコメント
C PRASAD
C PRASAD 2022 年 2 月 22 日
Thanks for the Response
Sulaymon Eshkabilov
Sulaymon Eshkabilov 2022 年 2 月 22 日
Most welcome!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeFilter Design についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by