Undefined function or variable "sens"

A. Stolk A.Stolk at EWI.UTWENTE.NL
Tue Jul 8 11:46:15 CEST 2008


If I add my own EEG.lay, the function does work well. If I leave it out, it does give the errors mentioned below. This problem is somehow absent in the 'light' fieldtrip edition installed on another computer. 
 
Regards, 
 
Arjen Stolk

________________________________

Van: FieldTrip discussion list namens A. Stolk
Verzonden: di 7/8/2008 10:36
Aan: FIELDTRIP at NIC.SURFNET.NL
Onderwerp: Re: [FIELDTRIP] Undefined function or variable "sens"



Thank you for your quick reply. I indeed do use a self-made EEG.lay, but am not using the neighbourselection.m.
I do manage to get my script to work on another computer, but somehow not on this one.

________________________________

Van: FieldTrip discussion list namens Vladimir Litvak
Verzonden: do 7/3/2008 5:10
Aan: FIELDTRIP at NIC.SURFNET.NL
Onderwerp: Re: [FIELDTRIP] Undefined function or variable "sens"



Do you actually have electrode positions somewhere in your data? They
are not usually supposed to get there by themselves so unless you
somehow got them there (like read in a file with sensor positions),
they are indeed missing. For statistics you don't actually need sensor
positions You can specify the neighborhood relations 'by hand' instead
of calling neighbourselection.

Best,

Vladimir

On Thu, Jul 3, 2008 at 3:05 PM, A. Stolk <A.Stolk at ewi.utwente.nl> wrote:
> Dear fieldtrippers,
>
> While performing statitstical analysis on time-frequency EEG data, I get the following error:
>
> ??? Undefined function or variable "sens".
> Error in ==> neighbourselection at 106
> if ~isstruct(sens)
> Error in ==> statistics_wrapper at 226
>    cfg.neighbours = neighbourselection(cfg,varargin{1});
> Error in ==> freqstatistics at 132
> [stat] = statistics_wrapper(cfg, varargin{:});
> Error in ==> fieldtripstatanalyse at 70
> [stat] = freqstatistics(cfg, stimulusFFT, baselineFFT);
>
> The neighbourselection function tells:
>
> if ~isstruct(sens)
>
> error('Did not find gradiometer or electrode information.');
>
>
>
> which gets its data by:
>
> % Revision 1.6 2006/07/12 14:14:59 roboos
>
> % get sens from data.grad/elec
>
>
>
> I get this error on several matlab and fieldtrip versions. Any suggestions how to solve this?
>
>
>
> Regards,
>
> Arjen Stolk
>
>
>
> ----------------------------------
> 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 http://listserv.surfnet.nl/archives/fieldtrip.html and http://www.ru.nl/fcdonders/fieldtrip.
>
>

----------------------------------
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 http://listserv.surfnet.nl/archives/fieldtrip.html and http://www.ru.nl/fcdonders/fieldtrip.

----------------------------------
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 http://listserv.surfnet.nl/archives/fieldtrip.html and http://www.ru.nl/fcdonders/fieldtrip.

----------------------------------
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 http://listserv.surfnet.nl/archives/fieldtrip.html and http://www.ru.nl/fcdonders/fieldtrip.



More information about the fieldtrip mailing list