[FieldTrip] ft_selectdata doesn't work after using ft_regressconfound

Conny Quaedflieg cornelia.quaedflieg at uni-hamburg.de
Fri Aug 4 09:37:21 CEST 2017

Dear Arjen, 


Thanks for your fast reply. 


With debug team I mean Bugzilla from fieldtrip. 




best Conny


Von: fieldtrip-bounces at science.ru.nl [mailto:fieldtrip-bounces at science.ru.nl] Im Auftrag von Arjen Stolk
Gesendet: Donnerstag, 3. August 2017 18:53
An: FieldTrip discussion list <fieldtrip at science.ru.nl>
Betreff: Re: [FieldTrip] ft_selectdata doesn't work after using ft_regressconfound


Hi Conny,


Yes, you can delete the beta field, or alternatively, call ft_regressconfound with cfg.beta = 'no' (perhaps this should be the default).


Didn't know there was a debug team..





On Thu, Aug 3, 2017 at 9:46 AM, Conny Quaedflieg <cornelia.quaedflieg at uni-hamburg.de <mailto:cornelia.quaedflieg at uni-hamburg.de> > wrote:

Dear Fieldtrip-users, 


We are not able to use function ft_selectdata after applying head movement correction using ft_regressconfound. The error that we get is the well-known index exceeds matrix dimensions. 

It is due to the fact that the size of x is incorrect, it doesn’t correspond to the number of trials but is 7 which is the number of regressors in the beta variable that is created by using ft_regressconfound. 

There is a simple way to solve it and this is deleting the field ‘beta’ before running ft_select data. 


My question is, just to be sure, the variance is regressed out by using ft_regressconfound so the beta variable is not needed in any further step right?

Maybe this is also something for the debug team? Thus that ft_selectdata runs after running ft_regressconfound. 



Dr Conny Quaedflieg 



Mit freundlichen Grüßen,



E-Mail:  <mailto:cornelia.quaedflieg at uni-hamburg.de> cornelia.quaedflieg at uni-hamburg.de 

Tel.:  <tel:+49%2040%2042838-5448> +49 40 42838-5448   Website:  <https://www.psy.uni-hamburg.de/arbeitsbereiche/kognitionspsychologie/personen/quaedflieg-conny.html> Hyperlink


fieldtrip mailing list
fieldtrip at donders.ru.nl <mailto:fieldtrip at donders.ru.nl> 


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20170804/3f890186/attachment-0002.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.jpg
Type: image/jpeg
Size: 5382 bytes
Desc: not available
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20170804/3f890186/attachment-0002.jpg>

More information about the fieldtrip mailing list