<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<font face="Palatino Linotype">Dear fieldtripers,<br>
<br>
After running ft_definetrial and ft_preprocessing, we try to plot
the data using ft_databrowser using the script at follow:<br>
<br>
<br>
>> cfg = [];<br>
>> ft_databrowser(cfg, data);<br>
<br>
But this is the error message we got:<br>
<br>
the input is raw data with 69 channels and 25 trials<br>
detected 0 visual artifacts<br>
Error using zeros<br>
Size inputs must be integers.<br>
<br>
Error in convert_event>artifact2artvec (line 179)<br>
artvec = zeros(length(artifact), endsample);<br>
<br>
Error in convert_event (line 103)<br>
obj = artifact2artvec(obj,endsample);<br>
<br>
Error in ft_databrowser (line 501)<br>
artdata.trial{1} = convert_event(artifact, 'boolvec',
'endsample', datendsample); % every artifact is a "channel"<br>
<br>
</font><br>
<font face="Palatino Linotype"><font face="Palatino Linotype">We did
try to plot the raw *.cnt file (the cnt is recorded using curry
7) using ft_databrowser. It worked, but not the epoched data. </font>This
is the parameters we used for the cfg to run ft_definetrial and
ft_preprocessing<br>
<br>
cfg = [];<br>
cfg.dataformat = 'ns_cnt';<br>
cfg.headerformat= 'ns_cnt';<br>
cfg.eventformat= 'ns_cnt';<br>
cfg.trialdef.eventtype = 'stimtype';<br>
cfg.trialdef.prestim = 0.5;<br>
cfg.trialdef.poststim = 1.5;<br>
cfg.trialdef.eventvalue = 114;<br>
cfg.dataset = [dir filesep 'cnt' filesep subjectdata.subjectnr
'_' subjectdata.initial '_' subjectdata.date '.cnt'];<br>
cfg = ft_definetrial(cfg);<br>
data = ft_preprocessing(cfg);<br>
<br>
The analysis is run on fieldtrip-20150522 and Matlab 2014a. Any
help with this will be appreciated!<br>
<br>
Many thanks in advance,<br>
Carmen<br>
</font>
<pre class="moz-signature" cols="72">
</pre>
</body>
</html>