Error in trialfun_neuroscan_eeg function

Robert Oostenveld r.oostenveld at FCDONDERS.RU.NL
Mon Dec 11 15:42:26 CET 2006


On 11 Dec 2006, at 14:20, Conrado Bosman wrote:
> I try to read the data using trialfun_neuroscan_eeg, but I got
> errors. Checking the scripts, I think the problem could be because
> there is an update in the fields names in the header, but not in
> the trialfun_neuroscan_eeg.
> As an example, in the first loop you have:
>
> for k=1:hdr.nsweeps
>
> but actually in the header nsweeps was renamed to nTrials.

Hi Conrado,

I suspect that it is easiest for you to fix the updated header
elements yourself in trialfun_neuroscan_eeg. Just rename it to
trialfun_conrado, and use your local working copy. Once it works,
please send me the fixed function and I will incorporate it in the
release version of FT.

Additionally, it should also be possible to use trialfun_general,
using cfg.eventtype ='trial'. Please do read_fcdc_event on your data
and see whether the event structure contains a trial event.

best regards,
Robert



More information about the fieldtrip mailing list