[Eeglablist] "inconsistent number of samples in trial 1" error in DIPFIT

Laura Frolich laura.frolich at gmail.com
Fri Sep 18 12:10:29 PDT 2015

Dear Nikola,

I have experienced this problem. For me, it occurred when the EEGLab data
struct was converted to the FieldTrip format if the icaact field
(EEG.icaact) was empty when the function eeglab2fieldtrip was called. Even
if the field was not empty when starting DIPFIT, the .icaact can be set to
[] by eeg_checkset if the option option_computeica is false. For me the
problem was fixed by making sure that option_computeica was set to true and
making sure that EEG.icaact was not empty when DIPFIT was started. I hope
this helps.


On Fri, Sep 18, 2015 at 2:22 PM, Nikola Vukovic <vukovicnikola at gmail.com>

> Dear EEGLab community,
> I've encountered a strange error when, having computed ICA on my dataset,
> I attempt to locate component dipoles. I have replicated the same error in
> several different datasets, with different number of channels, different
> pre-processing parameters, etc. The error given is:
> "inconsistent number of samples in trial 1,
> (Error occurred in function ft_datatype_raw() at line 87)"
> I haven't encountered this error before, using a slightly older version of
> eeglab. I'm currently using MATLAB R2014b and EEGLAB v13.4.4b.
> Any help in solving this problem would be very much appreciated...
> Nikola
> _______________________________________________
> Eeglablist page: http://sccn.ucsd.edu/eeglab/eeglabmail.html
> To unsubscribe, send an empty email to
> eeglablist-unsubscribe at sccn.ucsd.edu
> For digest mode, send an email with the subject "set digest mime" to
> eeglablist-request at sccn.ucsd.edu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://sccn.ucsd.edu/pipermail/eeglablist/attachments/20150918/6ca98e2f/attachment.html>

More information about the eeglablist mailing list