clusterrandanalysis on scalar values + problem with topoplotER

Robert Oostenveld r.oostenveld at FCDONDERS.RU.NL
Mon Oct 16 20:27:44 CEST 2006

Hi Marco

Your script looks ok.

On 13 Oct 2006, at 19:03, Marco Buiatti wrote:
> ??? Undefined variable "data" or class "data.biol".
> Error in ==> fieldtrip-20061012/private/prepare_design at 92
>  nrepl=size(data.biol,1);
> Error in ==> fieldtrip-20061012/private/statistics_wrapper at 212
>  [cfg] = prepare_design(cfg);
> Error in ==> timelockstatistics at 50
> [stat] = statistics_wrapper(cfg, varargin{:});

Yep, that is a known problem (sorry about that). The function
prepare_design is not working properly. I suggest to make a design
matrix in by hand (similar to, but not completely the same
as in SPM). It is not difficult, and it will also make you more clear
how it works. Please have a look at
or if that URL does not work, then search the fieldtrip discussion
list archive for the string "".

best regards,

PS note that you can also use timelockstatistics on the
'componentanalysis' part of the EEGLAB data, in that case you cannot
use channel clustering, but you still can use timepoint clustering
(so cfg.neighbours  should be []). You shoudl only do that if the ICA
components in the different EEG datasets are spatially the same (or
sufficiently similar, e.g. after clustering over subjects in the new

More information about the fieldtrip mailing list