<div dir="ltr"><span style="font-size:large">Does anyone know how to use fieldtrip to merge two separate files (mag, grad) back into one?</span><br style="font-size:large"><span style="font-size:large">I did grad and mag separately and saved them separately when I was doing ICA.</span><br style="font-size:large"><span style="font-size:large">But now I want to do source positioning, and I want to use all channels together for source positioning, how do I merge grad and mag back into one folder?</span><br style="font-size:large"><br style="font-size:large"><span style="font-size:large">Can I just merge the Matlab structure of grad and mag files? Will some information be lost this way?</span><br style="font-size:large"><br style="font-size:large"><span style="font-size:large">This is my previous code</span><br style="font-size:large"><br style="font-size:large"><span style="font-size:large">%% magnetometers ICA</span><br style="font-size:large"><span style="font-size:large">cfg=[]; cfg.channel={'MEG*1'};</span><br style="font-size:large"><span style="font-size:large">data_orig=ft_selectdata(cfg,</span><span style="font-size:large">data);</span><br style="font-size:large"><span style="font-size:large">save(['sub2019' subjectID{x} '_origmag.mat'],'data_orig', '-v7.3');</span><br style="font-size:large"><br style="font-size:large"><span style="font-size:large">%% planar gradiometers ICA</span><br style="font-size:large"><span style="font-size:large">cfg=[]; cfg.channel={'MEG*2','MEG*3'};</span><br style="font-size:large"><span style="font-size:large">data_orig=ft_selectdata(cfg,</span><span style="font-size:large">data);</span><br style="font-size:large"><span style="font-size:large">save(['sub2019' subjectID{x} '_origgrad.mat'],'data_orig', '-v7.3');</span><br style="font-size:large"><br style="font-size:large"><span style="font-size:large">I searched a previous question, but I didn't find in it exactly how to do this, and I also searched the fieldtrip GitHub site, but I didn't find the relevant statements either.</span><br style="font-size:large"><br style="font-size:large"><a href="https://mailman.science.ru.nl/pipermail/fieldtrip/2017-May/037417.html" target="_blank" style="font-size:large">https://mailman.science.ru.nl/pipermail/fieldtrip/2017-May/037417.html</a><br style="font-size:large"><br style="font-size:large"><span style="font-size:large">I was wondering if you could help me with this?</span><br style="font-size:large"><br style="font-size:large"><span style="font-size:large">Thank you for your time and I look forward to hearing from you soon!</span><br style="font-size:large"><br style="font-size:large"><span style="font-size:large">Best regards,</span><br style="font-size:large"><span style="font-size:large">Hasi Bagen</span><br style="font-size:large"></div>