[FieldTrip] Undefined function or variable 'lay'

Raquel Bibi bibi.raquel at gmail.com
Thu Oct 30 19:37:31 CET 2014


Yanina,
It looks like your layout variable is called "layout", but your cfg.layout
is looking for a variable called "lay".  The variable "lay" variable
doesn't exist, but I bet "layout" does :-)

Best,

Raquel

On Thu, Oct 30, 2014 at 2:10 PM, Yanina Prystauka <ojoe4ki at gmail.com> wrote:

> Dear Fieldtripers!
>
> I have data collected with Neuroscan 32 channels quickcap (1020
> standard). There is no template layout for it so I tried to create it
> myself and had to use Robert Oostenveld's help to succeed (please, see
> http://bugzilla.fcdonders.nl/show_bug.cgi?id=2740).
>
> So now I have a nice layout. I have checked it with
>
> cfg = [];
> cfg.layout = 'quickcap32.lay'
> ft_layoutplot(cfg)
>
> And I have created a .mat file out of it with
>
> layout = ft_prepare_layout(cfg)
>
> save quickcap32.mat layout
>
> And according to the tutorial on Fieldtrip Donders website this .mat file should contain variable 'lay'.  But now whenever I try to use the 'lay' variable for whatever purposes (e.g. plotting):
>
> templates_dir = 'D:/My Documents/MATLAB/template/layout/'
>
> load([templates_dir 'quickcap32.mat']);
>
> cfg             = [];
>
> cfg.layout = lay;
>
> ... I get this *Undefined function or variable 'lay'* message.
>
> What am I doing wrong? Any tips will be GREATLY appreciated!
>
> Kind regards,
>
> Yanina
>
>
> _______________________________________________
> fieldtrip mailing list
> fieldtrip at donders.ru.nl
> http://mailman.science.ru.nl/mailman/listinfo/fieldtrip
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20141030/910d2594/attachment.html>


More information about the fieldtrip mailing list