[FieldTrip] ordinal numbers of bad trials

cornelius abel cornabel at googlemail.com
Thu Aug 9 13:54:59 CEST 2012

Hi Nenad,

for the reject visual function i have a work around to this problem. 
First you have to add a column to the data.trialinfo table with a unique 
trial ID (in my case column 6).
Then you can compare the output trialinfo of the rejectvisual function 
(dummy.trialinfo) to the original trialinfo and identify the rejected 
trials. In VisBadTrials you then have the unique trial ID of the 
rejected trials.
Have a look at the code snip:

dummy        = ft_rejectvisual(cfg,data);


Am 09.08.2012 11:56, schrieb Nenad Polomac:
> Hi,
> I would like to know is there an option to save ordinal number of bad 
> trials after the artifact rejection step. I noticed that in all 
> artifact rejection methods(ft_rejectvisual or ft_artifact_zvalue) I 
> end up with structure "variable_name.cfg.artifact"which consist time 
> points of the bad segments but I cannot find ordinal numbers of it.
> Kind regards!
> Nenad
> _______________________________________________
> fieldtrip mailing list
> fieldtrip at donders.ru.nl
> http://mailman.science.ru.nl/mailman/listinfo/fieldtrip

More information about the fieldtrip mailing list