Fieldtrip interpolate bad channels

조회 수: 14 (최근 30일)
Hao-Wen
Hao-Wen 2023년 7월 28일
댓글: dpb 2023년 7월 28일
Hi all!
I'm trying to interpolate certain bad channels in my EEG data with Fieldtrip toolbox, but the code I'm using is not working. Can you find anything wrong in my steps?
First I use this code to define neighboring electrodes (which seemed sucessful):
cfg = [];
cfg.channel = {'Oz'};
cfg.method = 'template';
cfg.template = 'biosemi64_neighb.mat';
neighbours = ft_prepare_neighbours(cfg);
Then I used the following code to interpolate bad channels:
cfg = [];
cfg.missingchannel = {'Oz'} % I've tried this or using: data.label ('OZ');
cfg.method = 'weighted';
cfg.neighbours = neighbours;
data_fixed = ft_channelrepair(cfg, data);
It shows error:
What should I change?
  댓글 수: 1
dpb
dpb 2023년 7월 28일
@doc:fieldtrip finds nothing in the Mathworks doc files; you'll have to at least identify what the Fieldtrip toolbox is/where it comes from. Support from that source is probably the better shot; it doesn't appear to be a Mathworks product.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 EEG/MEG/ECoG에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by