errors in ft_componentsanalysis

Michael Wibral michael.wibral at WEB.DE
Wed Aug 25 18:33:18 CEST 2010

Dear Fieldtrippers,

 I have a little problems with cft_componentanalysis and the 'runica' option

When running  Fieldtrip20100822 on matlab2008b (on Linux and running filedtripdefs before starting the calculations) I get a complaint about the notorious missing randperm.m
??? Undefined function or method 'randperm' for input arguments of type 'double'.

Error in ==> runica at 1063
 timeperm=randperm(datalength); % shuffle data order at each step

Error in ==> ft_componentanalysis at 252
 [weights, sphere] = runica(dat, optarg{:});

I thought that running filedtripdefs would take care of this, but seemingly it doesn't.

On the other hand if I run it on matlab 2007a, then ft-componentanalysis/runica stops with a warning that the "try catch" syntax will not be supported in future matlab versions ?
I do not get an actual error because whatever happens happens in a try-catch statement so errors are suppressed

Any suggestions welcome,

The aim of this list is to facilitate the discussion between users of the FieldTrip  toolbox, to share experiences and to discuss new ideas for MEG and EEG analysis. See also and
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Michael Wibral.vcf
Type: text/x-vcard
Size: 628 bytes
Desc: not available
URL: <>

More information about the fieldtrip mailing list