muscle artifact rejection

J.M. Schoffelen Jan.Schoffelen at FCDONDERS.RU.NL
Fri Feb 18 15:16:15 CET 2005

Hi Dasha,

Please follow this link:
2> &L=fieldtrip&F=&S=&P=362

If you'd ask me, the filter-padding applied as a default to the
muscle-artifact routine apparently exceeds your trial-boundaries, whereas
the padding in the other routines do not (or you might have put cfg.datatype
= 'continuous' with the other artifact-types)



From: FieldTrip discussion list [mailto:FIELDTRIP at NIC.SURFNET.NL] On Behalf
Of Daria Osipova
Sent: Friday, February 18, 2005 11:52 AM
Subject: [FIELDTRIP] muscle artifact rejection


My muscle artifact rejection for the trial-based data crashes apparently due
to the fact that it starts to search for muscle artifacts before the first
trial starts. However I have this in my script that should supposedly solve
the problem:

cfg = definetrial(cfg);

cfg.trl = cfg.trl(2:end-1,:);

cfg = rmfield(cfg,'trialdef');

And this problem doesn't occur with either EOG or jump rejection.

Here is what it says:

identifying artifact-epochs

evaluating artifact_muscle

scanning for muscle artifacts in trial 1 from 121

??? Error using ==> read_fcdc_data

requested data segment extends over a discontinuous trial boundary

Error in ==> /home/common/matlab/fieldtrip/artifact_muscle.m

On line 110  ==>      dat = read_fcdc_data(cfg.datafile, hdr,
trl(trllop,1)-fltpadding, ...

Error in ==> /home/common/matlab/fieldtrip/rejectartifact.m

On line 238  ==>   eval(sprintf('[cfg, %s] = artifact_%s(cfg);',
cfg.artfctdef.type{type}, cfg.artfctdef.type{type}));

Error in ==> /home/common/matlab/fieldtrip/preprocessing.m

On line 242  ==> [cfg] = rejectartifact(cfg);

Error in ==> /home/electromag/darosi/data/temp/prep.m

On line 78  ==>             data = preprocessing(cfg);

Thanks a lot!

Best regards,


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the fieldtrip mailing list