How to define line code to block Frequency EEG based on specific range?

2 ビュー (過去 30 日間)
MOUSTADRANE
MOUSTADRANE 2024 年 5 月 19 日
回答済み: Manikanta Aditya 2024 年 5 月 20 日
I am new on mathalab and programmation, I am loocking for a base script to lock specific range of EEG frequency.
I would like :
to create a script able to detect the frequency from 0 to 20 Hz.
to block some of this frquency.
Thank you for help.
  2 件のコメント
Manikanta Aditya
Manikanta Aditya 2024 年 5 月 19 日
Just as a starting point of help you can refer this:
% Assuming 'eegData' is your EEG data and 'Fs' is the sampling frequency
eegData = ...;
Fs = ...;
% Design a bandpass filter that passes frequencies between 0 and 20 Hz
d = designfilt('bandpassiir', 'FilterOrder', 20, ...
'HalfPowerFrequency1', 0, 'HalfPowerFrequency2', 20, ...
'SampleRate', Fs);
% Apply the filter to the EEG data
filteredEegData = filtfilt(d, eegData);
MOUSTADRANE
MOUSTADRANE 2024 年 5 月 19 日
Thank you very much, it s help full !

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

採用された回答

Manikanta Aditya
Manikanta Aditya 2024 年 5 月 20 日
Refer this code as a starting point:
% Assuming 'eegData' is your EEG data and 'Fs' is the sampling frequency
eegData = ...;
Fs = ...;
% Design a bandpass filter that passes frequencies between 0 and 20 Hz
d = designfilt('bandpassiir', 'FilterOrder', 20, ...
'HalfPowerFrequency1', 0, 'HalfPowerFrequency2', 20, ...
'SampleRate', Fs);
% Apply the filter to the EEG data
filteredEegData = filtfilt(d, eegData);
I hope this helps.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeEEG/MEG/ECoG についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by