<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
Hi Javier, 
<div class=""><br class="">
</div>
<div class="">Sorry to repeat my self, but you are still not clear.</div>
<div class=""><br class="">
</div>
<div class="">You ask ‘why is it giving me always the same result despite being completely different EEG signals’.</div>
<div class=""><br class="">
</div>
<div class="">I don’t understand what ‘it’ is, and I see nowhere in your messages what you mean with ‘completely different EEG signals’. It’s all still Spanish to me.</div>
<div class=""><br class="">
</div>
<div class="">Different channels? Different simulations? Different step functions? Different noise? How did you do the simulations? How do the simulated signals look? What forward model was used in the simulation? Did you simulate enough variability in the
 sources’ time courses in order to have a chance to observe spatiotemporal variability at the scalp level? What did you expect from the call to ft_timelockanalysis?</div>
<div class=""><br class="">
</div>
<div class="">Also, please refer to <a href="http://www.catb.org/~esr/faqs/smart-questions.html" class="">http://www.catb.org/~esr/faqs/smart-questions.html</a> and <a href="https://www.fieldtriptoolbox.org/faq/how_to_ask_good_questions_to_the_community/" class="">https://www.fieldtriptoolbox.org/faq/how_to_ask_good_questions_to_the_community/</a></div>
<div class=""><br class="">
</div>
<div class="">Good luck,</div>
<div class=""><br class="">
</div>
<div class="">Jan-Mathijs</div>
<div class=""><br class="">
</div>
<div class="">
<div><br class="">
<blockquote type="cite" class="">
<div class="">On 17 Nov 2022, at 18:04, Francisco Javier Quirant Agulló via fieldtrip <<a href="mailto:fieldtrip@science.ru.nl" class="">fieldtrip@science.ru.nl</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div class="WordSection1" style="page: WordSection1; caret-color: rgb(0, 0, 0); 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; text-decoration: none;">
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
Hi Jan,<span class="Apple-converted-space"> </span><o:p class=""></o:p></div>
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<o:p class=""> </o:p></div>
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
Sorry for not being clear enough. The question is, how should I apply the timelock function properly? Or, why is it giving me always the same result despite being completely different EEG signals?<o:p class=""></o:p></div>
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<o:p class=""> </o:p></div>
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
Thanks and greetings,<o:p class=""></o:p></div>
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
Javier<span class="Apple-converted-space"> </span><o:p class=""></o:p></div>
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<o:p class=""> </o:p></div>
<div class="">
<div style="border-style: solid none none; border-top-width: 1pt; border-top-color: rgb(225, 225, 225); padding: 3pt 0cm 0cm;" class="">
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<b class=""><span lang="ES" class="">De:</span></b><span lang="ES" class=""><span class="Apple-converted-space"> </span>fieldtrip <<a href="mailto:fieldtrip-bounces@science.ru.nl" class="">fieldtrip-bounces@science.ru.nl</a>><span class="Apple-converted-space"> </span><b class="">En
 nombre de<span class="Apple-converted-space"> </span></b>Schoffelen, J.M. (Jan Mathijs) via fieldtrip<br class="">
<b class="">Enviado el:</b><span class="Apple-converted-space"> </span>jueves, 17 de noviembre de 2022 17:19<br class="">
<b class="">Para:</b><span class="Apple-converted-space"> </span>FieldTrip discussion list <<a href="mailto:fieldtrip@science.ru.nl" class="">fieldtrip@science.ru.nl</a>><br class="">
<b class="">CC:</b><span class="Apple-converted-space"> </span>Schoffelen, J.M. (Jan Mathijs) <<a href="mailto:janmathijs.schoffelen@donders.ru.nl" class="">janmathijs.schoffelen@donders.ru.nl</a>><br class="">
<b class="">Asunto:</b><span class="Apple-converted-space"> </span>Re: [FieldTrip] Help needed for timelock analysis<o:p class=""></o:p></span></div>
</div>
</div>
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<o:p class=""> </o:p></div>
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
Hi Javier,<span class="Apple-converted-space"> </span><o:p class=""></o:p></div>
<div class="">
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<o:p class=""> </o:p></div>
</div>
<div class="">
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
What is your question? I don’t manage to distill it from your e-mail.<o:p class=""></o:p></div>
</div>
<div class="">
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<o:p class=""> </o:p></div>
</div>
<div class="">
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
Best wishes,<o:p class=""></o:p></div>
</div>
<div class="">
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<o:p class=""> </o:p></div>
</div>
<div class="">
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
Jan-Mathijs<o:p class=""></o:p></div>
</div>
<div class="">
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<o:p class=""> </o:p></div>
<div class="">
<div class="">
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<br class="">
<br class="">
<o:p class=""></o:p></div>
<blockquote style="margin-top: 5pt; margin-bottom: 5pt;" class="">
<div class="">
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
On 17 Nov 2022, at 15:42, Francisco Javier Quirant Agulló via fieldtrip <<a href="mailto:fieldtrip@science.ru.nl" style="color: blue; text-decoration: underline;" class="">fieldtrip@science.ru.nl</a>> wrote:<o:p class=""></o:p></div>
</div>
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<o:p class=""> </o:p></div>
<div class="">
<div class="">
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif; background-color: white;" class="">
<span class="bcx0"><span lang="EN-GB" style="font-size: 12pt;" class="">Hello everyone, </span></span><span class="eop"><span style="font-size: 12pt;" class=""> </span></span><span style="font-size: 12pt;" class=""><o:p class=""></o:p></span></div>
</div>
<div class="">
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif; background-color: white;" class="">
<span class="bcx0"><span style="" class=""> </span></span><span style="font-size: 9pt; font-family: "Segoe UI", sans-serif;" class=""><o:p class=""></o:p></span></div>
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif; background-color: white;" class="">
<span class="eop"><span style="" class=""> </span></span><span class="bcx0"><span lang="EN-GB" style="font-size: 12pt;" class="">My name is Javier, I am a student of Biomedical</span></span><span class="apple-converted-space"><span lang="EN-GB" style="font-size: 12pt;" class=""> </span></span><span class="normaltextrun"><span lang="EN-GB" style="font-size: 12pt;" class="">engineering</span></span><span class="bcx0"><span lang="EN-GB" style="font-size: 12pt;" class=""> and I
 am working currently on my final master's project. The project aims to compare various inverse algorithms with some metrics and characterize them. </span></span><span class="eop"><span style="font-size: 12pt;" class=""> </span></span><span style="font-size: 9pt; font-family: "Segoe UI", sans-serif;" class=""><o:p class=""></o:p></span></div>
</div>
<div class="">
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif; background-color: white;" class="">
<span style="font-size: 12pt;" class=""><br class="">
<br class="">
</span><span style="font-size: 9pt; font-family: "Segoe UI", sans-serif;" class=""><o:p class=""></o:p></span></div>
</div>
<div class="">
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif; background-color: white;" class="">
<span class="bcx0"><span lang="EN-GB" style="font-size: 12pt;" class="">Right</span></span><span class="apple-converted-space"><span lang="EN-GB" style="font-size: 12pt;" class=""> </span></span><span class="normaltextrun"><span lang="EN-GB" style="font-size: 12pt;" class="">now</span></span><span class="bcx0"><span lang="EN-GB" style="font-size: 12pt;" class=""> what
 I am doing is generating a step signal at source level in 68 different brain sections and obtaining simulated EEG</span></span><span class="apple-converted-space"><span lang="EN-GB" style="font-size: 12pt;" class=""> </span></span><span class="bcx0"><span lang="EN-GB" style="font-size: 12pt;" class="">signals with
 fs = 500 Hz & 2s length (1000 samples) and some noise added.</span></span><span class="apple-converted-space"><span lang="EN-GB" style="font-size: 12pt;" class=""> </span></span><span class="bcx0"><span lang="EN-GB" style="font-size: 12pt;" class="">The initial
 steps are performed using</span></span><span class="apple-converted-space"><span lang="EN-GB" style="font-size: 12pt;" class=""> </span></span><span class="normaltextrun"><span lang="EN-GB" style="font-size: 12pt;" class="">BrainStorm</span></span><span class="bcx0"><span lang="EN-GB" style="font-size: 12pt;" class=""> and
 EEGs are exported to</span></span><span class="apple-converted-space"><span lang="EN-GB" style="font-size: 12pt;" class=""> </span></span><span class="normaltextrun"><span lang="EN-GB" style="font-size: 12pt;" class="">matlab</span></span><span class="bcx0"><span lang="EN-GB" style="font-size: 12pt;" class=""> to
 apply</span></span><span class="apple-converted-space"><span lang="EN-GB" style="font-size: 12pt;" class=""> </span></span><span class="normaltextrun"><span lang="EN-GB" style="font-size: 12pt;" class="">eLORETA</span></span><span class="bcx0"><span lang="EN-GB" style="font-size: 12pt;" class=""> and
 sLORETA with Fieldtrip.</span></span><span class="apple-converted-space"><span lang="EN-GB" style="font-size: 12pt;" class=""> </span></span><span class="eop"><span style="font-size: 12pt;" class=""> </span></span><span style="font-size: 9pt; font-family: "Segoe UI", sans-serif;" class=""><o:p class=""></o:p></span></div>
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif; background-color: white;" class="">
<span style="font-size: 12pt;" class=""><br class="">
<br class="">
</span><span style="font-size: 9pt; font-family: "Segoe UI", sans-serif;" class=""><o:p class=""></o:p></span></div>
</div>
<div class="">
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif; background-color: white;" class="">
<span class="bcx0"><span lang="EN-GB" style="font-size: 12pt;" class="">For this I am trying to calculate the time domain information for the signals with</span></span><span class="normaltextrun"><span lang="EN-GB" style="font-size: 12pt;" class="">ft_timelockanalysis</span></span><span class="bcx0"><span lang="EN-GB" style="font-size: 12pt;" class=""> and
 use the results in</span></span><span class="apple-converted-space"><span lang="EN-GB" style="font-size: 12pt;" class=""> </span></span><span class="normaltextrun"><span lang="EN-GB" style="font-size: 12pt;" class="">ft_sourceanalysis</span></span><span class="bcx0"><span lang="EN-GB" style="font-size: 12pt;" class="">.
 I realized that the source results were</span></span><span class="apple-converted-space"><span lang="EN-GB" style="font-size: 12pt;" class=""> </span></span><span class="bcx0"><span lang="EN-GB" style="font-size: 12pt;" class="">identical for the different
 EEGs (each one for a particular brain section), while the</span></span><span class="apple-converted-space"><span lang="EN-GB" style="font-size: 12pt;" class=""> </span></span><span class="bcx0"><span lang="EN-GB" style="font-size: 12pt;" class="">EEGs seem
 right the output of the</span></span><span class="apple-converted-space"><span lang="EN-GB" style="font-size: 12pt;" class=""> </span></span><span class="normaltextrun"><span lang="EN-GB" style="font-size: 12pt;" class="">ft_timelockanalysis</span></span><span class="bcx0"><span lang="EN-GB" style="font-size: 12pt;" class=""> is</span></span><span class="apple-converted-space"><span lang="EN-GB" style="font-size: 12pt;" class=""> </span></span><span class="bcx0"><span lang="EN-GB" style="font-size: 12pt;" class="">the
 same for all signals. Checking the function</span></span><span class="apple-converted-space"><span lang="EN-GB" style="font-size: 12pt;" class=""> </span></span><span class="normaltextrun"><span lang="EN-GB" style="font-size: 12pt;" class="">information</span></span><span class="bcx0"><span lang="EN-GB" style="font-size: 12pt;" class=""> I
 saw a note in line 45 that says:</span></span><span class="apple-converted-space"><span lang="EN-GB" style="font-size: 12pt;" class=""> </span></span><span class="bcx0"><span lang="EN-GB" style="font-size: 12pt;" class="">“% FIXME if input is one raw trial,
 the covariance is not computed correctly”. Tried dividing the EEG in 4 trials but no difference whatsoever. Spent some time also checking results within the function but haven’t made any progress.</span></span><span class="apple-converted-space"><span lang="EN-GB" style="font-size: 12pt;" class=""> </span></span><span class="eop"><span style="font-size: 12pt;" class=""> </span></span><span style="font-size: 9pt; font-family: "Segoe UI", sans-serif;" class=""><o:p class=""></o:p></span></div>
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif; background-color: white;" class="">
<span style="font-size: 12pt;" class=""><br class="">
<br class="">
</span><span style="font-size: 9pt; font-family: "Segoe UI", sans-serif;" class=""><o:p class=""></o:p></span></div>
</div>
<div class="">
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif; background-color: white;" class="">
<span class="bcx0"><span lang="EN-GB" style="font-size: 12pt;" class="">I think I may be using the data with an incorrect format or</span></span><span class="apple-converted-space"><span lang="EN-GB" style="font-size: 12pt;" class=""> </span></span><span class="bcx0"><span lang="EN-GB" style="font-size: 12pt;" class="">a
 wrong</span></span><span class="apple-converted-space"><span lang="EN-GB" style="font-size: 12pt;" class=""> </span></span><span class="normaltextrun"><span lang="EN-GB" style="font-size: 12pt;" class="">cfg</span></span><span class="bcx0"><span lang="EN-GB" style="font-size: 12pt;" class="">,
 any help would be much</span></span><span class="apple-converted-space"><span lang="EN-GB" style="font-size: 12pt;" class=""> </span></span><span class="normaltextrun"><span lang="EN-GB" style="font-size: 12pt;" class="">apreciated</span></span><span class="bcx0"><span lang="EN-GB" style="font-size: 12pt;" class="">.
 Follows the code.</span></span><span class="apple-converted-space"><span lang="EN-GB" style="font-size: 12pt;" class=""> </span></span><span class="eop"><span style="font-size: 12pt;" class=""> </span></span><span style="font-size: 9pt; font-family: "Segoe UI", sans-serif;" class=""><o:p class=""></o:p></span></div>
</div>
<div class="">
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif; background-color: white;" class="">
<span class="bcx0"><span lang="EN-GB" style="font-size: 12pt;" class="">-----------------------------------</span></span><span class="eop"><span style="font-size: 12pt;" class=""> </span></span><span style="font-size: 9pt; font-family: "Segoe UI", sans-serif;" class=""><o:p class=""></o:p></span></div>
</div>
<blockquote style="caret-color: rgb(0, 0, 0); font-variant-caps: normal; text-align: start; -webkit-text-stroke-width: 0px; word-spacing: 0px;" class="">
<blockquote class="">
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span class="normaltextrun"><span lang="EN-GB" style="font-size: 12pt;" class="">data.trial</span></span><span class="bcx0"><span lang="EN-GB" style="font-size: 12pt;" class="">{1} = real(eeg_01.F);% No idea why but EEGs from</span></span><span class="apple-converted-space"><span lang="EN-GB" style="font-size: 12pt;" class=""> </span></span><span class="normaltextrun"><span lang="EN-GB" style="font-size: 12pt;" class="">BrainStorm</span></span><span class="bcx0"><span lang="EN-GB" style="font-size: 12pt;" class=""> convert
 to complex in</span></span><span class="apple-converted-space"><span lang="EN-GB" style="font-size: 12pt;" class=""> </span></span><span class="normaltextrun"><span lang="EN-GB" style="font-size: 12pt;" class="">matlab</span></span><span class="eop"><span style="font-size: 12pt;" class=""> </span></span><span style="font-size: 10.5pt; font-family: Helvetica, sans-serif;" class=""><o:p class=""></o:p></span></div>
<div class="">
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif; background-color: white;" class="">
<span class="normaltextrun"><span lang="EN-GB" style="font-size: 12pt;" class="">data.time</span></span><span class="bcx0"><span lang="EN-GB" style="font-size: 12pt;" class="">{1} =</span></span><span class="apple-converted-space"><span lang="EN-GB" style="font-size: 12pt;" class=""> </span></span><span class="normaltextrun"><span lang="EN-GB" style="font-size: 12pt;" class="">eeg_01.Time</span></span><span class="bcx0"><span lang="EN-GB" style="font-size: 12pt;" class="">;</span></span><span class="eop"><span style="font-size: 12pt;" class=""> </span></span><span style="font-size: 9pt; font-family: "Segoe UI", sans-serif;" class=""><o:p class=""></o:p></span></div>
</div>
<div class="">
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif; background-color: white;" class="">
<span class="bcx0"><span lang="EN-GB" style="font-size: 12pt;" class="">   </span></span><span class="apple-converted-space"><span lang="EN-GB" style="font-size: 12pt;" class=""> </span></span><span class="eop"><span lang="ES" style="font-size: 12pt;" class=""> </span></span><span lang="ES" style="font-size: 9pt; font-family: "Segoe UI", sans-serif;" class=""><o:p class=""></o:p></span></div>
</div>
<div class="">
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif; background-color: white;" class="">
<span class="bcx0"><span lang="EN-GB" style="font-size: 12pt;" class="">save('</span></span><span class="normaltextrun"><span lang="EN-GB" style="font-size: 12pt;" class="">temp.mat','data</span></span><span class="bcx0"><span lang="EN-GB" style="font-size: 12pt;" class="">');</span></span><span class="normaltextrun"><span lang="EN-GB" style="font-size: 12pt;" class="">cfg</span></span><span class="bcx0"><span lang="EN-GB" style="font-size: 12pt;" class=""> =
 [</span></span><span class="normaltextrun"><span lang="EN-GB" style="font-size: 12pt;" class="">];   </span></span><span class="bcx0"><span lang="EN-GB" style="font-size: 12pt;" class=""> % This section only when I divide in trials (obviously)</span></span><span class="eop"><span style="font-size: 12pt;" class=""> </span></span><span style="font-size: 9pt; font-family: "Segoe UI", sans-serif;" class=""><o:p class=""></o:p></span></div>
</div>
<div class="">
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif; background-color: white;" class="">
<span class="normaltextrun"><span lang="EN-GB" style="font-size: 12pt;" class="">cfg.trialdef.triallength</span></span><span class="bcx0"><span lang="EN-GB" style="font-size: 12pt;" class=""> = 0.</span></span><span class="normaltextrun"><span lang="EN-GB" style="font-size: 12pt;" class="">5;   </span></span><span class="bcx0"><span lang="EN-GB" style="font-size: 12pt;" class="">  </span></span><span class="apple-converted-space"><span lang="EN-GB" style="font-size: 12pt;" class=""> </span></span><span class="eop"><span style="font-size: 12pt;" class=""> </span></span><span style="font-size: 9pt; font-family: "Segoe UI", sans-serif;" class=""><o:p class=""></o:p></span></div>
</div>
<div class="">
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif; background-color: white;" class="">
<span class="normaltextrun"><span lang="EN-GB" style="font-size: 12pt;" class="">cfg.datafile</span></span><span class="bcx0"><span lang="EN-GB" style="font-size: 12pt;" class=""> = '</span></span><span class="normaltextrun"><span lang="EN-GB" style="font-size: 12pt;" class="">temp.mat</span></span><span class="bcx0"><span lang="EN-GB" style="font-size: 12pt;" class="">';</span></span><span class="eop"><span style="font-size: 12pt;" class=""> </span></span><span style="font-size: 9pt; font-family: "Segoe UI", sans-serif;" class=""><o:p class=""></o:p></span></div>
</div>
<div class="">
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif; background-color: white;" class="">
<span class="normaltextrun"><span lang="EN-GB" style="font-size: 12pt;" class="">cfg.trialdef.eventtype</span></span><span class="bcx0"><span lang="EN-GB" style="font-size: 12pt;" class=""> = 'none';</span></span><span class="eop"><span style="font-size: 12pt;" class=""> </span></span><span style="font-size: 9pt; font-family: "Segoe UI", sans-serif;" class=""><o:p class=""></o:p></span></div>
</div>
<div class="">
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif; background-color: white;" class="">
<span class="normaltextrun"><span lang="EN-GB" style="font-size: 12pt;" class="">cfg</span></span><span class="bcx0"><span lang="EN-GB" style="font-size: 12pt;" class="">=</span></span><span class="apple-converted-space"><span lang="EN-GB" style="font-size: 12pt;" class=""> </span></span><span class="normaltextrun"><span lang="EN-GB" style="font-size: 12pt;" class="">ft_definetrial</span></span><span class="bcx0"><span lang="EN-GB" style="font-size: 12pt;" class="">(</span></span><span class="normaltextrun"><span lang="EN-GB" style="font-size: 12pt;" class="">cfg</span></span><span class="bcx0"><span lang="EN-GB" style="font-size: 12pt;" class="">);</span></span><span class="eop"><span style="font-size: 12pt;" class=""> </span></span><span style="font-size: 9pt; font-family: "Segoe UI", sans-serif;" class=""><o:p class=""></o:p></span></div>
</div>
<div class="">
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif; background-color: white;" class="">
<span class="bcx0"><span lang="EN-GB" style="font-size: 12pt;" class="">data =</span></span><span class="apple-converted-space"><span lang="EN-GB" style="font-size: 12pt;" class=""> </span></span><span class="normaltextrun"><span lang="EN-GB" style="font-size: 12pt;" class="">ft_preprocessing</span></span><span class="bcx0"><span lang="EN-GB" style="font-size: 12pt;" class="">(</span></span><span class="normaltextrun"><span lang="EN-GB" style="font-size: 12pt;" class="">cfg</span></span><span class="bcx0"><span lang="EN-GB" style="font-size: 12pt;" class="">);</span></span><span class="eop"><span style="font-size: 12pt;" class=""> </span></span><span style="font-size: 9pt; font-family: "Segoe UI", sans-serif;" class=""><o:p class=""></o:p></span></div>
</div>
<div class="">
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif; background-color: white;" class="">
<span class="bcx0"><span lang="EN-GB" style="font-size: 12pt;" class="">delete '</span></span><span class="normaltextrun"><span lang="EN-GB" style="font-size: 12pt;" class="">temp.mat</span></span><span class="bcx0"><span lang="EN-GB" style="font-size: 12pt;" class="">'</span></span><span class="eop"><span style="font-size: 12pt;" class=""> </span></span><span style="font-size: 9pt; font-family: "Segoe UI", sans-serif;" class=""><o:p class=""></o:p></span></div>
</div>
<div class="">
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif; background-color: white;" class="">
<span class="bcx0"><span lang="EN-GB" style="font-size: 12pt;" class="">   </span></span><span class="apple-converted-space"><span lang="EN-GB" style="font-size: 12pt;" class=""> </span></span><span class="eop"><span lang="ES" style="font-size: 12pt;" class=""> </span></span><span lang="ES" style="font-size: 9pt; font-family: "Segoe UI", sans-serif;" class=""><o:p class=""></o:p></span></div>
</div>
<div class="">
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif; background-color: white;" class="">
<span class="normaltextrun"><span lang="EN-GB" style="font-size: 12pt;" class="">cfg</span></span><span class="bcx0"><span lang="EN-GB" style="font-size: 12pt;" class=""> = [</span></span><span class="normaltextrun"><span lang="EN-GB" style="font-size: 12pt;" class="">];   </span></span><span class="bcx0"><span lang="EN-GB" style="font-size: 12pt;" class="">           </span></span><span style="font-size: 9pt; font-family: "Segoe UI", sans-serif;" class=""><o:p class=""></o:p></span></div>
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif; background-color: white;" class="">
<span class="normaltextrun"><span lang="EN-GB" style="font-size: 12pt;" class="">cfg.covariance</span></span><span class="bcx0"><span lang="EN-GB" style="font-size: 12pt;" class=""> = 'yes';</span></span><span class="eop"><span style="font-size: 12pt;" class=""> </span></span><span style="font-size: 9pt; font-family: "Segoe UI", sans-serif;" class=""><o:p class=""></o:p></span></div>
</div>
<div class="">
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif; background-color: white;" class="">
<span class="normaltextrun"><span lang="EN-GB" style="font-size: 12pt;" class="">cfg.keeptrials</span></span><span class="bcx0"><span lang="EN-GB" style="font-size: 12pt;" class=""> = 'yes';</span></span><span class="eop"><span style="font-size: 12pt;" class="">       %
 I comment these two lines for single trial</span></span><span style="font-size: 9pt; font-family: "Segoe UI", sans-serif;" class=""><o:p class=""></o:p></span></div>
</div>
<div class="">
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif; background-color: white;" class="">
<span class="normaltextrun"><span lang="EN-GB" style="font-size: 12pt;" class="">cfg.trials</span></span><span class="bcx0"><span lang="EN-GB" style="font-size: 12pt;" class=""> = 'all'</span></span><span class="eop"><span style="font-size: 12pt;" class=""> </span></span><span style="font-size: 9pt; font-family: "Segoe UI", sans-serif;" class=""><o:p class=""></o:p></span></div>
</div>
<div class="">
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif; background-color: white;" class="">
<span class="normaltextrun"><span lang="EN-GB" style="font-size: 12pt;" class="">data_cov</span></span><span class="bcx0"><span lang="EN-GB" style="font-size: 12pt;" class=""> =</span></span><span class="apple-converted-space"><span lang="EN-GB" style="font-size: 12pt;" class=""> </span></span><span class="normaltextrun"><span lang="EN-GB" style="font-size: 12pt;" class="">ft_timelockanalysis</span></span><span class="bcx0"><span lang="EN-GB" style="font-size: 12pt;" class="">(</span></span><span class="normaltextrun"><span lang="EN-GB" style="font-size: 12pt;" class="">cfg</span></span><span class="bcx0"><span lang="EN-GB" style="font-size: 12pt;" class="">,
 data);</span></span><span class="eop"><span style="font-size: 12pt;" class=""> </span></span><span style="font-size: 9pt; font-family: "Segoe UI", sans-serif;" class=""><o:p class=""></o:p></span></div>
</div>
<div class="">
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif; background-color: white;" class="">
<span class="eop"><span lang="ES" style="font-size: 12pt;" class=""> </span></span><span lang="ES" style="font-size: 9pt; font-family: "Segoe UI", sans-serif;" class=""><o:p class=""></o:p></span></div>
</div>
<div class="">
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif; background-color: white;" class="">
<span class="normaltextrun"><span lang="EN-GB" style="font-size: 12pt;" class="">cfg.layout</span></span><span class="bcx0"><span lang="EN-GB" style="font-size: 12pt;" class=""> = 'EEG1010.lay';</span></span><span class="eop"><span style="font-size: 12pt;" class=""> </span></span><span style="font-size: 9pt; font-family: "Segoe UI", sans-serif;" class=""><o:p class=""></o:p></span></div>
</div>
<div class="">
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif; background-color: white;" class="">
<span class="normaltextrun"><span lang="EN-GB" style="font-size: 12pt;" class="">ft_topoplotER</span></span><span class="bcx0"><span lang="EN-GB" style="font-size: 12pt;" class="">(</span></span><span class="normaltextrun"><span lang="EN-GB" style="font-size: 12pt;" class="">cfg,data_cov</span></span><span class="bcx0"><span lang="EN-GB" style="font-size: 12pt;" class="">);
   % This to plot the result, I get the same for all EEG files.</span></span><span class="eop"><span style="font-size: 12pt;" class=""> </span></span><span style="font-size: 9pt; font-family: "Segoe UI", sans-serif;" class=""><o:p class=""></o:p></span></div>
</div>
</blockquote>
</blockquote>
<div class="">
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif; background-color: white;" class="">
<span class="eop"><span lang="ES" style="font-size: 12pt;" class=""> </span></span><span lang="ES" style="font-size: 9pt; font-family: "Segoe UI", sans-serif;" class=""><o:p class=""></o:p></span></div>
</div>
<div class="">
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif; background-color: white;" class="">
<span class="bcx0"><span lang="EN-GB" style="font-size: 12pt;" class="">-----------------------------------</span></span><span class="eop"><span style="font-size: 12pt;" class=""> </span></span><span style="font-size: 9pt; font-family: "Segoe UI", sans-serif;" class=""><o:p class=""></o:p></span></div>
</div>
<div class="">
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif; background-color: white;" class="">
<span class="bcx0"><span lang="EN-GB" style="font-size: 12pt;" class="">Here you have the mat file with all variables and 3 of the EEGs already loaded: <a href="https://urldefense.com/v3/__https:/upvedues-my.sharepoint.com/:u:/g/personal/fjquiagu_upv_edu_es/EUPygCCic5NEiZak0leUSHsBSJAOKw9aJ_-ae7oibQIhNQ?e=TPWOkC__;!!HJOPV4FYYWzcc1jazlU!7ZVGIVpHujMhbuqj07PjD4_tJOJIGEhEa9EXa1hIOo6IqWXpztkw-y9kXyF9UpcjBTlphhjSrdqGapjwDYPr0saXmetMS6Y5taMH_w$" style="color: blue; text-decoration: underline;" class=""><span style="background-color: rgb(244, 244, 244); text-decoration: none;" class=""><img border="0" width="16" height="16" id="_x0000_i1025" src="https://res-geo.cdn.office.net/assets/mail/file-icon/png/generic_16x16.png" style="width: 0.1666in; height: 0.1666in;" class=""></span><span style="background-color: rgb(244, 244, 244);" class="">files.mat</span></a></span></span><span style="font-size: 9pt; font-family: "Segoe UI", sans-serif;" class=""><o:p class=""></o:p></span></div>
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif; background-color: white;" class="">
<span style="font-size: 12pt;" class=""><br class="">
<br class="">
</span><span style="font-size: 9pt; font-family: "Segoe UI", sans-serif;" class=""><o:p class=""></o:p></span></div>
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif; background-color: white;" class="">
<span style="font-size: 12pt;" class=""><br class="">
<br class="">
</span><span style="font-size: 9pt; font-family: "Segoe UI", sans-serif;" class=""><o:p class=""></o:p></span></div>
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif; background-color: white;" class="">
<span class="eop"><span style="font-size: 12pt;" class="">I hope everything is clear enought. </span></span><span style="font-size: 9pt; font-family: "Segoe UI", sans-serif;" class=""><o:p class=""></o:p></span></div>
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif; background-color: white;" class="">
<span style="font-size: 12pt;" class=""><br class="">
<br class="">
</span><span style="font-size: 9pt; font-family: "Segoe UI", sans-serif;" class=""><o:p class=""></o:p></span></div>
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif; background-color: white;" class="">
<span class="eop"><span style="font-size: 12pt;" class="">Greetings, </span></span><span style="font-size: 9pt; font-family: "Segoe UI", sans-serif;" class=""><o:p class=""></o:p></span></div>
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif; background-color: white;" class="">
<span class="eop"><span style="font-size: 12pt;" class="">Javier</span></span><span style="font-size: 9pt; font-family: "Segoe UI", sans-serif;" class=""><o:p class=""></o:p></span></div>
</div>
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<span style="font-size: 10.5pt; font-family: Helvetica, sans-serif;" class="">_______________________________________________<br class="">
fieldtrip mailing list<br class="">
</span><a href="https://mailman.science.ru.nl/mailman/listinfo/fieldtrip" style="color: blue; text-decoration: underline;" class=""><span style="font-size: 10.5pt; font-family: Helvetica, sans-serif;" class="">https://mailman.science.ru.nl/mailman/listinfo/fieldtrip</span></a><span style="font-size: 10.5pt; font-family: Helvetica, sans-serif;" class=""><br class="">
</span><a href="https://urldefense.com/v3/__https:/doi.org/10.1371/journal.pcbi.1002202__;!!HJOPV4FYYWzcc1jazlU!7ZVGIVpHujMhbuqj07PjD4_tJOJIGEhEa9EXa1hIOo6IqWXpztkw-y9kXyF9UpcjBTlphhjSrdqGapjwDYPr0saXmetMS6ZuT5is3Q$" style="color: blue; text-decoration: underline;" class=""><span style="font-size: 10.5pt; font-family: Helvetica, sans-serif;" class="">https://urldefense.com/v3/__https://doi.org/10.1371/journal.pcbi.1002202__;!!HJOPV4FYYWzcc1jazlU!7ZVGIVpHujMhbuqj07PjD4_tJOJIGEhEa9EXa1hIOo6IqWXpztkw-y9kXyF9UpcjBTlphhjSrdqGapjwDYPr0saXmetMS6ZuT5is3Q$</span></a><o:p class=""></o:p></div>
</div>
</blockquote>
</div>
<div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class="">
<o:p class=""> </o:p></div>
</div>
</div>
</div>
<span style="caret-color: rgb(0, 0, 0); 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; text-decoration: none; float: none; display: inline !important;" class="">_______________________________________________</span><br style="caret-color: rgb(0, 0, 0); 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; text-decoration: none;" class="">
<span style="caret-color: rgb(0, 0, 0); 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; text-decoration: none; float: none; display: inline !important;" class="">fieldtrip
 mailing list</span><br style="caret-color: rgb(0, 0, 0); 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; text-decoration: none;" class="">
<a href="https://mailman.science.ru.nl/mailman/listinfo/fieldtrip" style="color: blue; text-decoration: underline; 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="caret-color: rgb(0, 0, 0); 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; text-decoration: none;" class="">
<a href="https://urldefense.com/v3/__https://doi.org/10.1371/journal.pcbi.1002202__;!!HJOPV4FYYWzcc1jazlU!9mv2ZfhmgyQM2cnKYVMi4KmXT2iM-rhDIoKMzszsxvPMLkizmdbFnBJZbfr8a7_O7W5Ao7KPkHOOjvFSJDVKT_VMd2W0uunQbr0MTA$" style="color: blue; text-decoration: underline; 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://urldefense.com/v3/__https://doi.org/10.1371/journal.pcbi.1002202__;!!HJOPV4FYYWzcc1jazlU!9mv2ZfhmgyQM2cnKYVMi4KmXT2iM-rhDIoKMzszsxvPMLkizmdbFnBJZbfr8a7_O7W5Ao7KPkHOOjvFSJDVKT_VMd2W0uunQbr0MTA$</a><span style="caret-color: rgb(0, 0, 0); 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; text-decoration: none; float: none; display: inline !important;" class=""></span></div>
</blockquote>
</div>
<br class="">
</div>
</body>
</html>