<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">Dear Xiao,<br>
<br>
Somehow your channel names seem to not be recognized by FieldTrip,
and then it reverts to default channel names (chan001, chan002,
...). You will see that data_org.label will have those channel
labels. Subsequently, you define in the cfg for timelockanalysis
channel names that are not in your data (your channels are called
chanXXX, not MEGXXXX now), and FieldTrip thus does not perform the
operation on any channel. <br>
I don't know much about EEGLAB and how it is integrated with
FieldTrip - there should be an eeglab2fieldtrip function though in
fieldtrip/external/eeglab. Maybe you can try this, or maybe
someone else here knows why your channel labels do not get copied
over to FieldTrip correctly.<br>
<br>
Good luck :)<br>
Best,<br>
Jörn<br>
<br>
On 5/18/2013 4:06 PM, 陈雪 wrote:<br>
</div>
<blockquote
cite="mid:CADiddyXqEo+2Fc12er6TLTq=3xZAXSR6fx7zyQiuda+ykqEXSg@mail.gmail.com"
type="cite">
<div>Dear all,</div>
<div>I have a .mat file about meg
data(102*98800,channel*time,channel is
'MEG0111','MEG0121'.....'M*1' );</div>
<div>Then I use eeglab read it,got .set file;I want use
ft_timelockanalysis then </div>
<div><em>cfg = [];<br>
cfg.dataset = 'megalpha.set';<br>
cfg.grad=grad; <br>
data_org = ft_preprocessing(cfg)</em></div>
<div>>grad = </div>
<div> chanori: [102x3 double]<br>
chanpos: [102x3 double]<br>
chantype: {102x1 cell}<br>
chanunit: {102x1 cell}<br>
coilori: [510x3 double]<br>
coilpos: [510x3 double]<br>
label: {102x1 cell}<br>
tra: [102x510 double]<br>
unit: 'cm'</div>
<div>Warning: creating default channel names <br>
> In fileio\private\read_eeglabheader at 53<br>
In ft_read_header at 572<br>
In ft_preprocessing at 343<br>
processing channel { 'chan001' 'chan002' 'chan003' 'chan004'
'chan005' 'chan006' 'chan007' 'chan008' 'chan009' 'chan010'
'chan011' 'chan012' 'chan013' 'chan014' 'chan015' 'chan016'
'chan017' 'chan018' 'chan019' 'chan020' 'chan021' 'chan022'
'chan023' 'chan024' 'chan025' 'chan026' 'chan027' 'chan028'
'chan029' 'chan030' 'chan031' 'chan032' 'chan033' 'chan034'
'chan035' 'chan036' 'chan037' 'chan038' 'chan039' 'chan040'
'chan041' 'chan042' 'chan043' 'chan044' 'chan045' 'chan046'
'chan047' 'chan048' 'chan049' 'chan050' 'chan051' 'chan052'
'chan053' 'chan054' 'chan055' 'chan056' 'chan057' 'chan058'
'chan059' 'chan060' 'chan061' 'chan062' 'chan063' 'chan064'
'chan065' 'chan066' 'chan067' 'chan068' 'chan069' 'chan070'
'chan071' 'chan072' 'chan073' 'chan074' 'chan075' 'chan076'
'chan077' 'chan078' 'chan079' 'chan080' 'chan081' 'chan082'
'chan083' 'chan084' 'chan085' 'chan086' 'chan087' 'chan088'
'chan089' 'chan090' 'chan091' 'chan092' 'chan093' 'chan094'
'chan095' 'chan096' 'chan097' 'chan098' 'chan099' 'chan100'
'chan101' 'chan102' }<br>
reading and preprocessing<br>
reading and preprocessing trial 1 from 1</div>
<div>data_org = </div>
<div> hdr: [1x1 struct]<br>
label: {102x1 cell}<br>
time: {[1x98800 double]}<br>
trial: {[102x98800 double]}<br>
fsample: 1037<br>
sampleinfo: [1 98800]<br>
cfg: [1x1 struct]</div>
<div> </div>
<div><em>cfg = [];<br>
cfg.covariance = 'yes';<br>
cfg.channel = 'M*1';<br>
cfg.vartrllength = 2;<br>
cfg.covariancewindow = 'all';<br>
timelock = ft_timelockanalysis(cfg, data_org);</em></div>
<div>timelock = </div>
<div> avg: [0x98800 double]<br>
var: [0x98800 double]<br>
time: [1x98800 double]<br>
dof: [0x98800 double]<br>
label: {0x1 cell}<br>
dimord: 'chan_time'<br>
cov: []<br>
cfg: [1x1 struct]</div>
<div> </div>
<div>there is no error displyed in command window but the timlock
is empty,why?</div>
<div> </div>
<div>thanks for you help,</div>
<div>best,</div>
<div>xiao</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
fieldtrip mailing list
<a class="moz-txt-link-abbreviated" href="mailto:fieldtrip@donders.ru.nl">fieldtrip@donders.ru.nl</a>
<a class="moz-txt-link-freetext" href="http://mailman.science.ru.nl/mailman/listinfo/fieldtrip">http://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a></pre>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">--
Jörn M. Horschig
PhD Student
Donders Institute for Brain, Cognition and Behaviour
Centre for Cognitive Neuroimaging
Radboud University Nijmegen
Neuronal Oscillations Group
FieldTrip Development Team
P.O. Box 9101
NL-6500 HB Nijmegen
The Netherlands
Contact:
E-Mail: <a class="moz-txt-link-abbreviated" href="mailto:jm.horschig@donders.ru.nl">jm.horschig@donders.ru.nl</a>
Tel: +31-(0)24-36-68493
Web: <a class="moz-txt-link-freetext" href="http://www.ru.nl/donders">http://www.ru.nl/donders</a>
Visiting address:
Trigon, room 2.30
Kapittelweg 29
NL-6525 EN Nijmegen
The Netherlands</pre>
</body>
</html>