Reading brainvision dat files

Roman Freunberger Roman.Freunberger at SBG.AC.AT
Mon Aug 17 15:31:04 CEST 2009



I am a new fieldtrip user and would like to know how to read brainvision
files that were exported as .dat into matlab with fieldtrip. It would be
great to read segmented and/ or continous data into matlab that was
preprocessed (artifact correction, ...) in brainvision analyzer. I tried
read_data in combination with the read_header function and I always get
this message:


??? Error using ==> zeros

NaN and Inf not allowed.


Error in ==> read_brainvision_eeg at 89

  dat = zeros(endsample-begsample+1, hdr.NumberOfChannels);


Error in ==> read_data at 686

    dat = read_brainvision_eeg(filename, hdr.orig, begsample,


Error in ==> ReadAnalyzerSegments at 7

data = read_data(filename);


Thank you in advance and best wishes,




Dr. Roman Freunberger 

Department of Psychology
University of Salzburg

Hellbrunnerstrasse 34

5020 Salzburg, Austria


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the fieldtrip mailing list