<div>Dear Robert,</div> <div>Thank you for your suggestion. It does help a lot. Yes, the function 'ctf_read' is from EEGLAB, I used it to obtain the basic information of the dataset. And my data was recorded trial-based. As you pointed, the problem in my trial definition was that I have multiple triggers of the same value in "a single trial". </div> <div>Then I defined my own trial function based on the 'trial' event, and it works out.</div> <div>Thanks a lot!</div> <div> </div> <div> Li Weina<BR><BR><B><I>Robert
Oostenveld <r.oostenveld@FCDONDERS.RU.NL></I></B> дµÀ£º</div> <BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">Dear Li Weina<BR><BR>I am not sure what you mean with the function "ctf_read", as that is <BR>not part of Fieldtrip.<BR><BR>If the data was acquired continuously, then I suggest that you use <BR>read_fcdc_event and that you plot the value of each trial versus the <BR>sample<BR><BR>event = read_fcdc_event(..)<BR>sel = find(strcmp('backpanel trigger', {event.type});<BR>event = sevent(sel);<BR>x = cell2mat(event.sample);<BR>y = cell2mat(event.value);<BR>plot(x, y, '.')<BR><BR>that will show the structure in the sequence of the triggers in your <BR>data.<BR><BR>It might well be that you have multiple triggers of value "9" in your <BR>data within what you condider to be a single trial, or that some <BR>trials do not have the tigger 9 in them. If the data was acquired <BR>trial-based, then I suggest that you
make your own trialfunction <BR>(cfg.trialfun) that defines the segments of interest based on the <BR>'trial' event (i.e. search for event(i).type='trial' and use event <BR>(i).sample, duration and offset to define the begin, end and offset <BR>of each segment of interest).<BR><BR><BR>see "help definetrial" and e.g.<BR>http://www2.ru.nl/fcdonders/fieldtrip/doku.php? <BR>id=fieldtrip:documentation:tutorial:preprocessing<BR>and<BR>http://www2.ru.nl/fcdonders/fieldtrip/doku.php? <BR>id=fieldtrip:documentation:examples:making_your_own_trialfun_for_conditi <BR>onal_trial_definition<BR><BR>best regards,<BR>Robert<BR><BR><BR>On 18 Mar 2008, at 8:24, ÀîÎÀÄÈ wrote:<BR><BR>> Hi, everyone,<BR>><BR>> There was something wrong when I use the fieldtrip function <BR>> 'definetrial', or exectly 'read_fcdc_event'.<BR>> I first got the basic information of my data by using function <BR>> 'ctf_read', and it returned data which was orgnized as <1800*185*75 <BR>>
double>, that is , there were 75 trials in my data. But when I <BR>> defined trial by using 'definetrial', (key parameters were <BR>> configured as follows: cfg.trialdef.eventtype='frontpanel <BR>> trigger' ; cfg.trialdef.prestim=1; cfg.trialdef.poststim=2; <BR>> cfg.trialdef.eventvalue=9 %(obtained from 'read_fcdc_event'); ), it <BR>> showed 88 trials were defined. What's more, I found the trials <BR>> defined by 'definetrial' were not consecutive.<BR>> SO, I want to know what' s wrong with the processing or the fucntion?<BR>> Thank you for your answer!<BR>> Best wishes.<BR>><BR>> <BR>> Li Weina<BR>><BR>> ÑÅ»¢ÓÊÏä´«µÝÐÂÄê×£¸££¬¸öÐԺؿ¨ËÍÇ×Åó£¡<BR>> ----------------------------------<BR>><BR>> The aim of this list is to facilitate the discussion between users <BR>> of the FieldTrip toolbox, to share experiences and to discuss new <BR>> ideas for MEG and EEG analysis.<BR>><BR>>
http://listserv.surfnet.nl/archives/fieldtrip.html<BR>><BR>> http://www.ru.nl/fcdonders/fieldtrip/<BR>><BR><BR>----------------------------------<BR>The aim of this list is to facilitate the discussion between users of the FieldTrip toolbox, to share experiences and to discuss new ideas for MEG and EEG analysis. See also http://listserv.surfnet.nl/archives/fieldtrip.html and http://www.ru.nl/fcdonders/fieldtrip.<BR></BLOCKQUOTE><BR><p>
<hr size=1><a href="http://cn.mail.yahoo.com/gc/index.html?entry=5&souce=mail_mailletter_tagline">ÑÅ»¢ÓÊÏä´«µÝÐÂÄê×£¸££¬¸öÐԺؿ¨ËÍÇ×Åó£¡</a>
<p>----------------------------------</p>
<p>The aim of this list is to facilitate the discussion between users of the FieldTrip toolbox, to share experiences and to discuss new ideas for MEG and EEG analysis.</p>
<p> http://listserv.surfnet.nl/archives/fieldtrip.html</p>
<p> http://www.ru.nl/fcdonders/fieldtrip/</p>