Macquarie-MEG-Research / MQ_MEG_Scripts

Public repository for analysis scripts developed by the Macquarie MEG Laboratory
https://macquarie-meg-research.github.io/MQ_MEG_Scripts/
9 stars 6 forks source link

read_reTHM needs to handle two bad coils #15

Closed neurofractal closed 5 years ago

neurofractal commented 5 years ago

Already implemented


mrk_colors = ['r','y','b','w','k'];

if strcmp(bad_coil,'')

else
    for coil = 1:length(bad_coil)
        fprintf('Removing %s coil',bad_coil{coil});
        find_bad_coil_pos = find(ismember(head_movt.label,bad_coil{coil}));

        head_movt.label(find_bad_coil_pos) = [];
        head_movt.pos(:,find_bad_coil_pos,:) = [];
        head_movt.gof(:,find_bad_coil_pos) = [];
        mrk_colors(find_bad_coil_pos) = [];
    end
end