DICS

Robert Oostenveld r.oostenveld at FCDONDERS.RU.NL
Fri Jul 14 11:37:47 CEST 2006


On 13 Jul 2006, at 13:11, Muthuraman Muthuraman wrote:

> cfg.method='dics';
> cfg.grid=grid;
> cfg.elecfile=elec1;
> cfg.vol=vol;
> [source]=sourceanalysis(cfg,freqmtmfft);
> using headmodel specified in the configuration
> ??? Error using ==> fprintf
> Function is not defined for 'struct' inputs.
>
> Error in ==> fieldtrip-20060712\private\prepare_vol_sens at 310
>  fprintf('reading electrodes from file %s\n', cfg.elecfile);

You should specify either cfg.elecfile with a string (filename) or
cfg.elec with a structure (i.e. cfg.elec.pnt and cfg.elec.label)

> I get error
>
> using headmodel specified in the configuration
> using electrodes specified in the configuration
> ??? Error using ==> delaunayn
> Not enough unique points to do tessellation.
>
> Error in ==> delaunay at 49
>    tri = delaunayn([x(:) y(:)]);
>
> Error in ==> fieldtrip-20060712\private\prepare_vol_sens at 330
>  elec.tri   = delaunay(elec.prj(:,1), elec.prj(:,2));
>
> Error in ==> prepare_leadfield at 179
> [vol, sens, cfg] = prepare_vol_sens(cfg, data);

That indicates that less than 3 electrodes were selected. Probably
there is a mismatch between the channel names in the data and the
names of the electrodes. FT selects the channels and electrodes based
on the corresponding labels, if they do not correspond then no
channels+electrodes are selected.

Robert



More information about the fieldtrip mailing list