Re reference to the average and segmentation

Hello,

I am currently reviewing my raw data from Matlab as matrix, there I am doing all my pre process as edit channels, notch... and re-referencing to the average.
Then I am exporting this last file as a .eeg to import it again and do my segmentation by blocks. Everything is working but when I open my trials just created it seem that the rerefrence is not taking into accoun (you can see the same time window of my signal top: the trial and bottom the "raw file review"), is there something I should do differently ?
I tried to do my pre-process directly on my matlab file importing but I can not do the rereference there..
Do you have any suggestionns ?

Thank you by advance,
Marie

I am currently reviewing my raw data from Matlab as matrix

We don't recommend importing continuous files as split blocks.
What can't you do with the continuous files directly?

Then I am exporting this last file as a .eeg to import it again and do my segmentation by blocks.

Why such a convoluted pipeline?
Avoid using conversions between file formats as much as possible.

it seem that the rerefrence is not taking into accoun (you can see the same time window of my signal top: the trial and bottom the "raw file review"), is there something I should do differently ?

Have you applied your average reference to your recordings?
https://neuroimage.usc.edu/brainstorm/Tutorials/Epilepsy#Average_reference

I'd recommend you start by following all the introduction tutorials + the EEG/Epilepsy tutorial before trying to process your own recordings.