Back to the main page.
Bug 642 - ft_channelselection cannot handle channelexclusion of channels denoted with a *
Status | CLOSED FIXED |
Reported | 2011-05-05 09:53:00 +0200 |
Modified | 2012-02-03 21:22:34 +0100 |
Product: | FieldTrip |
Component: | core |
Version: | unspecified |
Hardware: | PC |
Operating System: | Windows |
Importance: | P1 major |
Assigned to: | Robert Oostenveld |
URL: | |
Tags: | |
Depends on: | |
Blocks: | |
See also: |
Arjen Stolk - 2011-05-05 09:53:43 +0200
Replication of bug with MEG data: chans = ft_channelselection({'all','-MLC*'}, data.label) chans = ft_channelselection({'MEG','-MLC*'}, data.label) while chans = ft_channelselection({'all','-MLC'}, data.label) chans = ft_channelselection({'MEG','-MLC'}, data.label) work fine. The specific error is 'matrix index is out of range for deletion' and is related to the variable 'channel' at line 287.
Arjen Stolk - 2011-05-05 09:57:41 +0200
see discussion list mail by Eliezer Kanal: Hello fieldtrip - We have a Elekta Neuromag 306 scanner, and I'm trying to select only the gradiometers. The magnetometers are labeled 'MEGxxx1', where x can be any number, and the gradiometers are either 'MEGxxx2' or 'MEGxxx3'. However, using ft_channelselection results in the following error: ~~~~ >> ft_channelselection({'all','-STI*','-MEG*1'}, cfg.hdr.label) ??? Matrix index is out of range for deletion. Error in ==> ft_channelselection at 287 channel([ ~~~~ This error is somewhat complex, as I was able to determine that ft_channelselection recursively calls itself a number of times while running, and I was unable to figure out what is causing this problem. Any help would be appreciated. Thanks! Eliezer Kanal
Jörn M. Horschig - 2011-09-06 14:41:35 +0200
I was just browsing through some bugs, and saw that this has been an issue some while ago. I think I fixed this problem as well by fixing bug 670. Can someone check and verify?