[FieldTrip] [ext] preprocessing error "Index exceeds matrix dimensions error"

Mathis Kaiser mathis.kaiser at charite.de
Tue Mar 27 12:53:47 CEST 2018


Hi Diana,

is it possible that you already segmented the data in NetStation? The
header indicates 98 trials. I have no experience with EGI files, but is
there an option to export the continuous data? If you want to define
your trials in fieldtrip, this makes more sense.

Best,
Mathis

On 24.03.2018 21:25, - Диана wrote:
>  
> Dear Fildtrippers,
>     
> My name is Diana, I'm new to Fieldtrip and curently trying to learn
> how process eeg data
>     
> I have a .raw file, exported from NetStation
> I'm using Matlab 2014b, and the latest version of fieldtrip.
>  
>  
> [my definetria]:
>  
> events = ft_read_event('01 wordA 27-09.raw')
> FileName = '01 wordA 27-09.raw';
>  cfg                         = [];
>   cfg.dataset                 = FileName;
>   cfg.trialdef.eventtype      = 'trigger';
>   cfg.trialdef.eventvalue     = 'tim0'; % здесь то значение, которое нужно
>   cfg.trialdef.prestim        = 0.2; % интервал до стимула
>   cfg.trialdef.poststim       = 0.8; % интервал после стимула
>  
>   cfg = ft_definetrial(cfg);
>  
>  
> after this, I try
>  
> [preprocessing]:
>  
> cfg = []
> cfg.dataset = FileName
> cfg.channel = 'EEG'
> cfg.continuous   = 'no'
> raw_data  = ft_preprocessing(cfg)
>  
> And get such error:
>  
> reading and preprocessing
> reading and preprocessing trial 2 from 98
> Index exceeds matrix dimensions.
>  
> Error in read_sbin_data (line 121)
>         eventData(:,1:NSamples)  = temp(
>         (NChan+1):(NChan+NEvent), 1:NSamples);
>  
> Error in ft_read_data (line 737)
>       dat = read_sbin_data(filename, hdr, begtrial,
>       endtrial, chanindx);
>  
> Error in ft_preprocessing (line 573)
>       dat = ft_read_data(cfg.datafile, 'header', hdr,
>       'begsample', begsample, 'endsample', endsample,
>       'chanindx', rawindx, 'checkboundary',
>       strcmp(cfg.continuous, 'no'), 'dataformat',
>       cfg.dataformat);
>  
> Error in preproc_try (line 3)
> raw_data  = ft_preprocessing(cfg)
>  
> Error in run (line 63)
> evalin('caller', [script ';']);
>  
> Could you help me to understand how to manage this, please?
>  
> Example file:
> https://drive.google.com/open?id=1c5RYxL9Br1Q5LTkedBD_dR4Ns72Vb9J5
>  
> Thank you for your answers!
>  
>  
> With best wishes, Diana
> Undergraduate Student
> Department of Biology of MSU
>  
> P.S. Sorry for having this letter sent again, the first attempt failed
> strangely.
>
>
> _______________________________________________
> fieldtrip mailing list
> fieldtrip at donders.ru.nl
> https://mailman.science.ru.nl/mailman/listinfo/fieldtrip

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20180327/7fbacab5/attachment-0002.html>


More information about the fieldtrip mailing list