The code is from LIMO eeg matlab program so I'm not sure it would be much help here or what exactly I would have to show you within this code. But these squares do not show up in all of my images only a couple so i don't know what they are coming from. Is it not possible to simply direct me to in matlab figure editor solution that removes the boarders and remakes them or something like that?
https://github.com/LIMO-EEG-Toolbox/limo_tools/wiki


