Mex File error during call to eeg_leadfield

Jared Van Snellenberg jaredvs at GMAIL.COM
Tue Jul 17 22:24:02 CEST 2007


Hi all,

I'm working on a DICS beamformer analysis, and ran into a Mex file error.

Here's the MATLAB error (as you can see I have the most recent versions of 
MATLAB and FIELTRIP):

??? Invalid MEX-file 'C:\Program Files\MATLAB\R2007a\fieldtrip-20070717
\private\plgndr.dll': The specified procedure could not be found.

.

Error in ==> fieldtrip-20070717\private\eeg_leadfield4 at 126
    P0  = plgndr(n,0,cos_theta);		% zero'th order Legendre

Error in ==> fieldtrip-20070717\private\compute_leadfield at 447
        lf = eeg_leadfield4(pos, sens.pnt, vol);

Error in ==> fieldtrip-20070717\private\beamformer_dics at 212
        lf = compute_leadfield(dip.pos(i,:), grad, vol, 'reducerank', 
reducerank, 'normalize', normalize);

Error in ==> sourceanalysis at 855
      dip(i) = beamformer_dics(grid, sens, vol, [],  squeeze(Cf(i,:,:)), 
optarg{:});


In case it helps, my cfg options are as follows:

src_cfg.method='dics';
src_cfg.vol.r=[71 72 79 85];
src_cfg.vol.c=[0.3300 1 0.0042 0.3300];
src_cfg.vol.o=[0 0 35.9];
src_cfg.grid.xgrid=-85:5:85;
src_cfg.grid.ygrid=-85:5:85;
src_cfg.grid.zgrid=-50:5:125;
src_cfg.grid.resolution=5;
src_cfg.channel=1:59;

Also, the data contain an elec field with a 61x3 list of coordinates (in 
mm, like the cfg.grid) and a 61x1 cell array of channel labels.

The data come from a call to freqanalysis with the following options:

f_cfg.method='mtmconvol';
f_cfg.output='powandcsd';
f_cfg.taper='hanning';
f_cfg.tapsmofrq=1;
f_cfg.keeptrials='yes';
f_cfg.channel=1:59;


Any assistance would be greatly appreciated.

Regards,

Jared Van Snellenberg
Social Cognitive Affective Neuroscience Unit
http://scan.psych.columbia.edu 
(212) 854-7858 p
(212) 854-3609 f
Department of Psychology, Columbia University
406 Schermerhorn Hall
1190 Amsterdam Avenue, Mail Code 5501
New York, NY 10027

----------------------------------
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