[FieldTrip] reconstruction of EEG patterns on a 3D shape

Cristiano Micheli michelic72 at gmail.com
Tue Feb 13 16:54:18 CET 2018


Dear Team,
I am using Matlab 2017 and when I execute the following lines :

cfg=[];
cfg.layout = 'biosemi256.lay';
layout = ft_prepare_layout(cfg);

I get the following error

*Error using nargin*
*You can only call nargin/nargout from within a MATLAB function.*

*Error in ft_preamble_init (line 34)*
*if nargin==0*

*Error in ft_preamble (line 56)*
*   evalin('caller', ['ft_preamble_' cmd]);*

*Error in ft_prepare_layout (line 96)*
*ft_preamble init*

This seems related to the nargin instruction, which cannot be used in
scripts anymore and it is MatLab version specific (does not happen if I use
Matlab 2015b).

Is this a bug?
Cris
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20180213/956b17c1/attachment-0001.html>


More information about the fieldtrip mailing list