<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
Hi Rodolfo,
<div class="">It would be helpful if you provided information about the fieldtrip version you use, matlab version, operating system etc.</div>
<div class="">Also, the current version of the fieldtrip code on github does not contain a functional line in line 231 in ft_sourceanalysis, but a text comment.</div>
<div class="">Also, you are using old-style syntax, which, although it should be backward compatible, is not recommended. The fieldnames ‘vol’, and ‘grid’ have been changed into ‘headmodel’ and ‘sourcemodel’, respectively. Of course this works only in the more
 recent fieldtrip version.</div>
<div class="">I suggest that you upgrade to a more recent version and try again.</div>
<div class=""><br class="">
</div>
<div class="">Good luck</div>
<div class="">Jan-Mathijs</div>
<div class=""><br class="">
</div>
<div class=""><br class="">
</div>
<div class="">
<div>
<blockquote type="cite" class="">
<div class="">On 28 May 2019, at 22:57, Rodolfo Solis <<a href="mailto:rodolfoso@hotmail.com" class="">rodolfoso@hotmail.com</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div style="font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; font-family: Calibri, Helvetica, sans-serif; font-size: 12pt;" class="">
<div style="margin: 0px; font-size: 12pt; font-family: Calibri, Helvetica, sans-serif; background-color: rgb(255, 255, 255);" class="">
Hi Fieldtrip team!</div>
<div style="margin: 0px; font-size: 12pt; font-family: Calibri, Helvetica, sans-serif; background-color: rgb(255, 255, 255);" class="">
<br class="">
</div>
<div style="margin: 0px; font-size: 12pt; font-family: Calibri, Helvetica, sans-serif; background-color: rgb(255, 255, 255);" class="">
I am trying to do a source analysis after preprocessing (ft_preprocessing) and running an ERP analysis (ft_timelockanalysis) in order to reconstruct the signal at source level in specific grid points using an LCMV filter. I've done this many many times in the
 past with the same script, and never had any problem with ft_sourceanalysis. Today, I ran my script and received the following error:</div>
<div style="margin: 0px; font-size: 12pt; font-family: Calibri, Helvetica, sans-serif; background-color: rgb(255, 255, 255);" class="">
<br class="">
</div>
<div style="margin: 0px; font-size: 12pt; font-family: Calibri, Helvetica, sans-serif; background-color: rgb(255, 255, 255);" class="">
<span style="margin: 0px;" class="">Error using ft_sourceanalysis (line 231)<br class="">
</span><span style="margin: 0px;" class="">unexpected name of the subfunction</span><br class="">
</div>
<div style="margin: 0px; font-size: 12pt; font-family: Calibri, Helvetica, sans-serif; background-color: rgb(255, 255, 255);" class="">
<span style="margin: 0px;" class=""><br class="">
</span></div>
<div style="margin: 0px; font-size: 12pt; font-family: Calibri, Helvetica, sans-serif; background-color: rgb(255, 255, 255);" class="">
<span style="margin: 0px;" class="">My cfg structure is:</span></div>
<div style="margin: 0px; font-size: 12pt; font-family: Calibri, Helvetica, sans-serif; background-color: rgb(255, 255, 255);" class="">
<span style="margin: 0px;" class=""><span style="margin: 0px;" class="">channel: 'MEG'<br class="">
</span>
<div style="margin: 0px;" class="">method: 'lcmv'<br class="">
</div>
<div style="margin: 0px;" class="">lcmv: [1×1 struct]<br class="">
</div>
<div style="margin: 0px;" class="">projmom: 'no'<br class="">
</div>
<div style="margin: 0px;" class="">grid: [1×1 struct]<br class="">
</div>
<div style="margin: 0px;" class="">vol: [1×1 struct]<br class="">
</div>
<div style="margin: 0px;" class="">keeptrials: 'yes'<br class="">
</div>
<span style="margin: 0px;" class="">rois: [1×22 double]</span><br class="">
</span></div>
<div style="margin: 0px; font-size: 12pt; font-family: Calibri, Helvetica, sans-serif; background-color: rgb(255, 255, 255);" class="">
<br class="">
</div>
<div style="margin: 0px; font-size: 12pt; font-family: Calibri, Helvetica, sans-serif; background-color: rgb(255, 255, 255);" class="">
I am asking for </div>
<div style="margin: 0px; font-size: 12pt; font-family: Calibri, Helvetica, sans-serif; background-color: rgb(255, 255, 255);" class="">
source  = ft_sourceanalysis(cfg2,timelock);</div>
<div style="margin: 0px; font-size: 12pt; font-family: Calibri, Helvetica, sans-serif; background-color: rgb(255, 255, 255);" class="">
<br class="">
</div>
<div style="margin: 0px; font-size: 12pt; font-family: Calibri, Helvetica, sans-serif; background-color: rgb(255, 255, 255);" class="">
Is there any issue with the function? This is the first time I receive this error, with no problems in the past.</div>
<div style="margin: 0px; font-size: 12pt; font-family: Calibri, Helvetica, sans-serif; background-color: rgb(255, 255, 255);" class="">
<br class="">
</div>
<div style="margin: 0px; font-size: 12pt; font-family: Calibri, Helvetica, sans-serif; background-color: rgb(255, 255, 255);" class="">
Thanks a lot for your help!</div>
<div style="margin: 0px; font-size: 12pt; font-family: Calibri, Helvetica, sans-serif; background-color: rgb(255, 255, 255);" class="">
<br class="">
</div>
<div style="margin: 0px; font-size: 12pt; font-family: Calibri, Helvetica, sans-serif; background-color: rgb(255, 255, 255);" class="">
Rodolfo</div>
<br class="">
</div>
<div style="font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; font-family: Calibri, Helvetica, sans-serif; font-size: 12pt;" class="">
<br class="">
</div>
<div id="Signature" style="font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">
<div class=""></div>
<div id="divtagdefaultwrapper" dir="ltr" style="font-family: Calibri, Helvetica, sans-serif, EmojiFont, 'Apple Color Emoji', 'Segoe UI Emoji', NotoColorEmoji, 'Segoe UI Symbol', 'Android Emoji', EmojiSymbols, EmojiFont, 'Apple Color Emoji', 'Segoe UI Emoji', NotoColorEmoji, 'Segoe UI Symbol', 'Android Emoji', EmojiSymbols, EmojiFont, 'Apple Color Emoji', 'Segoe UI Emoji', NotoColorEmoji, 'Segoe UI Symbol', 'Android Emoji', EmojiSymbols, Helvetica, EmojiFont, 'Apple Color Emoji', 'Segoe UI Emoji', NotoColorEmoji, 'Segoe UI Symbol', 'Android Emoji', EmojiSymbols;" class="">
<div id="divtagdefaultwrapper" dir="ltr" style="font-size: 12pt; font-family: Calibri, Arial, Helvetica, sans-serif, EmojiFont, 'Apple Color Emoji', 'Segoe UI Emoji', NotoColorEmoji, 'Segoe UI Symbol', 'Android Emoji', EmojiSymbols, EmojiFont, 'Apple Color Emoji', 'Segoe UI Emoji', NotoColorEmoji, 'Segoe UI Symbol', 'Android Emoji', EmojiSymbols, EmojiFont, 'Apple Color Emoji', 'Segoe UI Emoji', NotoColorEmoji, 'Segoe UI Symbol', 'Android Emoji', EmojiSymbols, EmojiFont, 'Apple Color Emoji', 'Segoe UI Emoji', NotoColorEmoji, 'Segoe UI Symbol', 'Android Emoji', EmojiSymbols, EmojiFont, 'Apple Color Emoji', 'Segoe UI Emoji', NotoColorEmoji, 'Segoe UI Symbol', 'Android Emoji', EmojiSymbols, EmojiFont, 'Apple Color Emoji', 'Segoe UI Emoji', NotoColorEmoji, 'Segoe UI Symbol', 'Android Emoji', EmojiSymbols, EmojiFont, 'Apple Color Emoji', 'Segoe UI Emoji', NotoColorEmoji, 'Segoe UI Symbol', 'Android Emoji', EmojiSymbols, Helvetica, EmojiFont, 'Apple Color Emoji', 'Segoe UI Emoji', NotoColorEmoji, 'Segoe UI Symbol', 'Android Emoji', EmojiSymbols;" class="">
<span style="font-size: 11pt;" class=""><span style="font-size: 12pt;" class="">Dr. Rodolfo Solís Vivanco</span></span></div>
<div id="divtagdefaultwrapper" dir="ltr" style="font-family: Calibri, Arial, Helvetica, sans-serif, EmojiFont, 'Apple Color Emoji', 'Segoe UI Emoji', NotoColorEmoji, 'Segoe UI Symbol', 'Android Emoji', EmojiSymbols, EmojiFont, 'Apple Color Emoji', 'Segoe UI Emoji', NotoColorEmoji, 'Segoe UI Symbol', 'Android Emoji', EmojiSymbols, EmojiFont, 'Apple Color Emoji', 'Segoe UI Emoji', NotoColorEmoji, 'Segoe UI Symbol', 'Android Emoji', EmojiSymbols, EmojiFont, 'Apple Color Emoji', 'Segoe UI Emoji', NotoColorEmoji, 'Segoe UI Symbol', 'Android Emoji', EmojiSymbols, EmojiFont, 'Apple Color Emoji', 'Segoe UI Emoji', NotoColorEmoji, 'Segoe UI Symbol', 'Android Emoji', EmojiSymbols, EmojiFont, 'Apple Color Emoji', 'Segoe UI Emoji', NotoColorEmoji, 'Segoe UI Symbol', 'Android Emoji', EmojiSymbols, EmojiFont, 'Apple Color Emoji', 'Segoe UI Emoji', NotoColorEmoji, 'Segoe UI Symbol', 'Android Emoji', EmojiSymbols, Helvetica, EmojiFont, 'Apple Color Emoji', 'Segoe UI Emoji', NotoColorEmoji, 'Segoe UI Symbol', 'Android Emoji', EmojiSymbols;" class="">
<span style="font-size: 11pt;" class=""><span style="font-size: 12pt;" class=""></span></span>
<div class=""><span style="font-size: 11pt;" class=""></span>
<div style="font-size: 12pt;" class=""><i class=""><span style="font-size: 11pt;" class="">---------------------------------------------------------------- </span></i></div>
<div style="font-size: 12pt;" class=""><i class=""><span style="font-size: 11pt;" class="">Departamento de Neuropsicología</span></i></div>
<span style="font-size: 11pt;" class=""></span>
<div style="font-size: 12pt;" class=""><i class=""><span style="font-size: 11pt;" class="">Instituto Nacional de Neurología y Neurocirugía</span></i></div>
<span style="font-size: 11pt;" class=""></span>
<div style="font-size: 12pt;" class=""><i class=""><span style="font-size: 11pt;" class="">-----------------------------------------------------------------</span><span style="font-size: 11pt;" class=""></span></i></div>
<span style="font-size: 11pt;" class=""></span>
<div style="font-size: 12pt;" class=""><i class=""><span style="font-size: 11pt;" class="">Programa de Maestría y Doctorado en Psicología</span></i></div>
<span style="font-size: 11pt;" class=""></span>
<div style="font-size: 12pt;" class=""><i class=""></i></div>
<span style="font-size: 11pt;" class=""></span>
<div style="font-size: 12pt;" class=""><i class=""><span style="font-size: 11pt;" class="">Universidad Nacional Autónoma de México</span></i></div>
<span style="font-size: 11pt;" class=""></span>
<div style="font-size: 12pt;" class=""><i class=""><span style="font-size: 11pt;" class="">-----------------------------------------------------------------</span><span style="font-size: 11pt;" class=""></span></i></div>
<span style="font-size: 11pt;" class=""></span>
<div style="font-size: 12pt;" class=""><i class=""><span style="font-size: 11pt;" class="">Neuropsicología clínica</span></i></div>
<span style="font-size: 11pt;" class=""></span>
<div class=""><span style="font-size: 14.6667px;" class=""><i class="">Hospital Sedna</i></span></div>
<div class=""><span style="font-size: 14.6667px;" class=""><i class="">Tel. 80007300, ext. 7065</i></span></div>
</div>
</div>
</div>
</div>
<span style="font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">_______________________________________________</span><br style="font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">
<span style="font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">fieldtrip
 mailing list</span><br style="font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">
<a href="https://mailman.science.ru.nl/mailman/listinfo/fieldtrip" style="font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" class="">https://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a><br style="font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">
<a href="https://doi.org/10.1371/journal.pcbi.1002202" style="font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" class="">https://doi.org/10.1371/journal.pcbi.1002202</a></div>
</blockquote>
</div>
<br class="">
</div>
</body>
</html>