<div><div>Hi Steve,</div><div>the problem is before using ft_definetrial()</div><div>I'd like to read the .cnt data from file as one long continuous segment without any additional filtering...so this is all the code </div>
<div><br></div></div><div>cfg=[];</div><div>cfg.dataset ='ab001002012.cnt'</div><div><div>data_org = ft_preprocessing(cfg)</div></div><div><div><br></div><div>error in loadcnt.m (line 551) because nevents=0.125 such that ev2(nevents).stimtype=[] cannot exist!</div>
<div><br></div><div><br></div></div><div>%</div><br><div class="gmail_quote">On Tue, Oct 9, 2012 at 10:06 AM, Stephen Politzer-Ahles <span dir="ltr"><<a href="mailto:politzerahless@gmail.com" target="_blank">politzerahless@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Jose,<br><br>Can you show the code you are using (i.e., the whole cfg that you set up before using ft_definetrial() ? It should look something like the example at <a href="http://fieldtrip.fcdonders.nl/tutorial/preprocessing#reading_and_preprocessing_the_interesting_trials" target="_blank">http://fieldtrip.fcdonders.nl/tutorial/preprocessing#reading_and_preprocessing_the_interesting_trials</a><br>
<br>Best,<br>Steve Politzer-Ahles<br><br><br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Message: 2<br>
Date: Mon, 8 Oct 2012 19:43:39 -0400<br>
From: Jose Herrero <<a href="mailto:jose.herrero66@gmail.com" target="_blank">jose.herrero66@gmail.com</a>><br>
To: <a href="mailto:fieldtrip@science.ru.nl" target="_blank">fieldtrip@science.ru.nl</a><br>
Subject: [FieldTrip] import .cnt file<br>
Message-ID:<br>
<CA+zL3bypOAoqvWgOr0H+j9OfTX-42=<a href="mailto:GZCDZSWdgDciYFm0vKEg@mail.gmail.com" target="_blank">GZCDZSWdgDciYFm0vKEg@mail.gmail.com</a>><br>
Content-Type: text/plain; charset="iso-8859-1"<div><div class="h5"><br>
<br>
Dear FTrip users,<br>
<br>
matlab crashes when trying to import a .cnt data file using<br>
cfg=ft_definetrial(cfg).<br>
<br>
my system is 16 bits (at least loadcnt.m returns r.dataformat=='int16') so<br>
this is not the problem<br>
<br>
cfg=[];<br>
cfg.dataset='ab001002012.cnt'<br>
error in loadcnt.m (line 551) because nevents=0.125 such that<br>
ev2(nevents).stimtype=[] cannot exist!<br>
in line 464 the variable dat (50chan*14455000samples) reshapes to 50*1<br>
because r.ldnsamples=1....why?<br>
<br>
other question is about the type of file cfg.dataset gets. I only have one<br>
raw data file (e.g. 'ab001002012.cnt') while the others have already been<br>
filtered with eeglab (e.g. 'ab002002012@m.cnt' for mua<br>
and 'ab001002012@e.cnt' for lfp). however imputing these files gives me a<br>
similar error.<br>
<br>
any ideas?<br>
Jose H.<br></div></div>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20121008/4c49ba3a/attachment-0001.html" target="_blank">http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20121008/4c49ba3a/attachment-0001.html</a>><br>
</blockquote></div>
<br>_______________________________________________<br>
fieldtrip mailing list<br>
<a href="mailto:fieldtrip@donders.ru.nl">fieldtrip@donders.ru.nl</a><br>
<a href="http://mailman.science.ru.nl/mailman/listinfo/fieldtrip" target="_blank">http://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div>Jose L Herrero, PhD</div>
<div>Department of Psychiatry</div><div><div>Columbia University College of Physicians and Surgeons</div></div><div>Cognitive Neuroscience and Schizophrenia Program</div><div>Nathan S. Kline Institute for Psychiatric Research</div>
<div><br></div><br>