Hi Mike,
I hope you are well. I'm doing manual artifact rejection and I'm coming across a specific type of noise I hadn't really thought a lot about before. I'm referring to these short bursts of high frequency activity that are the same over all electrodes and produce those vertical bands (there are three epochs displayed):

Is this line noise or something else? Should I get rid of the first and last epoch or should I ignore this altogether during artifact rejection and deal with it in another way?
The reason I'm posting in this thread is that I tried to see what would happen if I applied a Laplacian transform to the data and a few more questions came up:
Is it OK to apply the Laplacian at any point in the preprocessing protocol or is there a reason to apply it at the very last step?
When I looked at the transformed data in the scroll plot, it looked a lot noisier over all frequencies, as if every feature had been exaggerated. I had to increase the scaling by a factor of 10 to be able to properly visualise it and it still looked messy compared to the pre-Laplacian data. Did I do something wrong? Below is the code I used:
Thanks!
Raquel
%COMPUTE LAPLACIAN
%compute inter-electrode distances
interelectrodedist=zeros(EEG.nbchan);
for chani=1:EEG.nbchan
for chanj=chani+1:EEG.nbchan
interelectrodedist(chani,chanj) = sqrt( (EEG.chanlocs(chani).X-EEG.chanlocs(chanj).X)^2 + (EEG.chanlocs(chani).Y-EEG.chanlocs(chanj).Y)^2 + (EEG.chanlocs(chani).Z-EEG.chanlocs(chanj).Z)^2);
end
end
valid_gridpoints = find(interelectrodedist);
% extract XYZ coordinates from EEG structure
X = [EEG.chanlocs.X];
Y = [EEG.chanlocs.Y];
Z = [EEG.chanlocs.Z];
% create G and H matrices
[ldata,G,H] = laplacian_perrinX(EEG.data(:,:,:),X,Y,Z,10,1e-6);
EEG.data = ldata;
eeglab redraw