<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>