Back to the main page.

Bug 2257 - ft_rejectartifact throws an error when replacing artifact with nans

Status CLOSED FIXED
Reported 2013-08-20 13:37:00 +0200
Modified 2015-07-15 13:30:49 +0200
Product: FieldTrip
Component: core
Version: unspecified
Hardware: PC
Operating System: Linux
Importance: P3 normal
Assigned to: Jim Herring
URL:
Tags:
Depends on:
Blocks:
See also:

Jim Herring - 2013-08-20 13:37:44 +0200

If input data is given and artifacts are to be replaced with nans, ft_rejectartifact throws an error because cfg.trl is empty. "Error using ft_rejectartifact (line 491) No trials left after artifact rejection." I will fix this by marking each trial as ok as is done in the rest of the function to indicate the trial should be kept.


Jim Herring - 2013-08-20 13:39:30 +0200

Sending ft_rejectartifact.m Transmitting file data . Committed revision 8406.