eeglab2fieldtrip

Robert Oostenveld r.oostenveld at FCDONDERS.RU.NL
Sat Jul 7 14:09:15 CEST 2007


On 6 Jul 2007, at 8:27, Valesca Kooijman wrote:
> The latest version of eeglab2fieldtrip gives me the same error
> message in line 146 (where it calls the fixprecission function,
> instead of in line 149).
> Is there another solution? If not, which version of matlab do you
> recommend?

Matlab 7.0.1 is an old version, released around end 2004. It was
quickly superseeded with version 7.0.4 to fix some serious bugs. I
reccommend people in general to work with the latest matlab versionm,
which now is 7.4.

You can fix your problem by changing the "matlabversion" function
which is included as subfunction inside the eeglab2fieldtrip
function. Go to line 250 and replace the code there with the snippet
below. I will make the same change in the release version.

Robert
----

function [v] = matlabversion;
s = ver('matlab');
v = s.Version;
if ischar(v)
   % try converting to a number
   n = str2num(v);
   if isempty(n)
     switch v
     case '6.5.1'
       n = 6.5; % this is accurate enough
     case '7.0.1'
       n = 7.0; % this is accurate enough
     case '7.0.4'
       n = 7.0; % this is accurate enough
     otherwise
       warning('cannot convert matlab version into a number');
       v = v;
     end
   end
   v = n;
end

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