[FieldTrip] a question about EEG layout

Schoffelen, J.M. (Jan Mathijs) janmathijs.schoffelen at donders.ru.nl
Wed Feb 16 18:53:41 CET 2022

Hi Masoud,

Could you provide a little bit more information? In your first method: what is the exact error that you get? Have you inspected the output to ft_prepare_layout, after you clicked all electrodes? 
I assume that the error you encounter is the one that is thrown in line 535 or 543 of ft_prepare_layout. This suggests that the mat-file you are reading does not contain a variable that is called ‘lay’ or ‘layout’.

Best wishes,

> On 14 Feb 2022, at 16:37, masoud via fieldtrip <fieldtrip at science.ru.nl> wrote:
> Hello, I am currently using the fieldtrip matlab toolbox for preprocessing an EEG dataset,  and I have a problem while making a layout. I used two methods for making the layout.
> 1- I used a picture with markers for each electrode and I specified the outline and mask with ft-prepare-layout. but when I wanted to use the layout it simply said as an error:(mat file does not contain a layout).
> 2- I use an standard template that has more channel number than my dataset, so i used the desired electrode to make a structure with label, pos, width and height but still when I used ft-prepare-layout, I got the same error as the first method
> would you mind please helping me with this problem?
> thank you so much for your attention and your amazing toolbox
> sincerely, Masoud
> _______________________________________________
> fieldtrip mailing list
> https://mailman.science.ru.nl/mailman/listinfo/fieldtrip
> https://urldefense.com/v3/__https://doi.org/10.1371/journal.pcbi.1002202__;!!HJOPV4FYYWzcc1jazlU!8Mx-1LJgRu6Xr3pSMlomqtzJ3yWj16h6nEpXUOQUEO7As8Djn5USoAeqDfLEULoTJYfqrau3qEW82hRIrGFvvMMmWWBRl_mmEcFUNg$ 

More information about the fieldtrip mailing list