<div dir="ltr"><div class="gmail_default" style="font-size:small">Ahh such wonderful memories, </div><div class="gmail_default" style="font-size:small">As I recall we had more than 200 electrodes on the scalp and we used that information to localize the multiple sources of the EEG. We then did our best to find the location and direction of each source. </div><div class="gmail_default" style="font-size:small">It was a wonderful challenge for me. </div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Stan</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Feb 16, 2022 at 9:53 AM Schoffelen, J.M. (Jan Mathijs) via fieldtrip <<a href="mailto:fieldtrip@science.ru.nl">fieldtrip@science.ru.nl</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi Masoud,<br>
<br>
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? <br>
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’.<br>
<br>
Best wishes,<br>
Jan-Mathijs<br>
<br>
<br>
> On 14 Feb 2022, at 16:37, masoud via fieldtrip <<a href="mailto:fieldtrip@science.ru.nl" target="_blank">fieldtrip@science.ru.nl</a>> wrote:<br>
> <br>
> 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.<br>
> 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).<br>
> 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<br>
> would you mind please helping me with this problem?<br>
> thank you so much for your attention and your amazing toolbox<br>
> sincerely, Masoud<br>
> _______________________________________________<br>
> fieldtrip mailing list<br>
> <a href="https://mailman.science.ru.nl/mailman/listinfo/fieldtrip" rel="noreferrer" target="_blank">https://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a><br>
> <a href="https://urldefense.com/v3/__https://doi.org/10.1371/journal.pcbi.1002202__;!!HJOPV4FYYWzcc1jazlU!8Mx-1LJgRu6Xr3pSMlomqtzJ3yWj16h6nEpXUOQUEO7As8Djn5USoAeqDfLEULoTJYfqrau3qEW82hRIrGFvvMMmWWBRl_mmEcFUNg$" rel="noreferrer" target="_blank">https://urldefense.com/v3/__https://doi.org/10.1371/journal.pcbi.1002202__;!!HJOPV4FYYWzcc1jazlU!8Mx-1LJgRu6Xr3pSMlomqtzJ3yWj16h6nEpXUOQUEO7As8Djn5USoAeqDfLEULoTJYfqrau3qEW82hRIrGFvvMMmWWBRl_mmEcFUNg$</a> <br>
<br>
<br>
_______________________________________________<br>
fieldtrip mailing list<br>
<a href="https://mailman.science.ru.nl/mailman/listinfo/fieldtrip" rel="noreferrer" target="_blank">https://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a><br>
<a href="https://doi.org/10.1371/journal.pcbi.1002202" rel="noreferrer" target="_blank">https://doi.org/10.1371/journal.pcbi.1002202</a><br>
</blockquote></div>