Manuel Gomez-Ramirez mramirez at NKI.RFMH.ORG
Tue Apr 8 05:10:12 CEST 2008

I'm having problems trying to run the "scalpcurrentdensity" function in

I just downloaded the latest version and it is still giving me problems.

the error message reads as follows:

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

Error in ==> fieldtrip-20080405\private\splint>gh at 170
      p(k) = plgndr(k,0,x(i,j));

Error in ==> fieldtrip-20080405\private\splint at 75
[gx, hx] = gh(CosEii);

Error in ==> scalpcurrentdensity at 186
    [V2, L2, L1] = splint(elec.pnt, data.trial{1}, [0 0 1]);

Has anybody else run into this situation???
Gladly appreciate your help! 
Thanks in advance


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

More information about the fieldtrip mailing list