Skip to content

Commit db76f42

Browse files
authored
Update EEGLAB_and_EMG_data.md
1 parent 8b755a4 commit db76f42

File tree

1 file changed

+1
-27
lines changed

1 file changed

+1
-27
lines changed

tutorials/misc/EEGLAB_and_EMG_data.md

Lines changed: 1 addition & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -247,33 +247,7 @@ EEG = eeg_checkset(EEG);
247247
- Removes time windows where >25% of channels are bad
248248
- Useful for movement artifacts affecting multiple channels
249249

250-
### Visual inspection after cleaning
251-
252-
Always visualize the data after cleaning:
253-
254-
```matlab
255-
% Plot scrolling data to inspect cleaning results
256-
pop_eegplot(EEG, 1, 1, 1);
257-
258-
% Check which channels were removed
259-
if isfield(EEG.etc, 'clean_channel_mask')
260-
removed_chans = find(~EEG.etc.clean_channel_mask);
261-
fprintf('Removed %d channels: ', length(removed_chans));
262-
for i = 1:length(removed_chans)
263-
fprintf('%s ', EEG.chanlocs(removed_chans(i)).labels);
264-
end
265-
fprintf('\n');
266-
end
267-
268-
% Check how much data was removed
269-
if isfield(EEG.etc, 'clean_sample_mask')
270-
samples_removed = sum(~EEG.etc.clean_sample_mask);
271-
pct_removed = 100 * samples_removed / length(EEG.etc.clean_sample_mask);
272-
fprintf('Removed %.1f%% of data samples\n', pct_removed);
273-
end
274-
```
275-
276-
### Alternative: Manual bad channel removal
250+
### Alternative to ASR: Manual bad channel removal
277251

278252
If you prefer manual control:
279253

0 commit comments

Comments
 (0)