<div dir="ltr"><div><div><div>Dear list,<br><br></div>I am working with 128 channel EEG data recorded from infants and young children. As they had few bad channels, I removed them, computed ICA, removed eye-blink components and then interpolated the removed channels. The interpolated channels were appended at the end, not at their original positions. Is there a way I can add the interpolated channels in the original order? I want to run some scripts outside fieldtrip on the data and the channel order is important. Any help would be greatly appreciated.<br><br></div>Thanks,<br></div>Arti<br><div><div><div><br>cfg                     =[];<br>cfg.layout              = 'GSN-Hydrocel-129.sfp';<br>lay                     = ft_prepare_layout(cfg);<br>cfg                     = [];<br>cfg_neighb.layout       = lay;<br>cfg_neighb.method       = 'triangulation';<br>cfg.feedback            = 'yes';<br>EEG_neighbours          = ft_prepare_neighbours(cfg_neighb);<br><br>load('NJ_24_ica_artrej.mat')<br>badchannels            = setdiff(lay.label(1:129), NJ_24_ica_artrej.label);<br><br><br>cfg                     = [];<br>cfg.layout              = lay;<br>cfg.neighbours          = EEG_neighbours;<br>cfg.badchannel          = badchannels;<br>cfg.method              ='spline';<br>cfg.senstype            = 'EEG';<br>NJ_24_ica_interp   = ft_channelrepair(cfg, NJ_24_ica_artrej);<br></div></div></div></div>