Practically the 'c:<channels>' argument doesn't work in combination with 'noread' because of the unconditional
NEV.Data.Spikes.Waveform(:, NEV.Data.Spikes.Electrode == unWantedChannels(idx)) = [];
line. Suggestion: wrap that one in if ~isempty(NEV.Data.Spikes.Waveform).