<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="">
<font size="4" class="">Dear Sarah,</font>
<div class=""><font size="4" class=""><br class="">
</font></div>
<div class=""><font size="4" class="">Thanks for clarifying your question. Now, could you provide the readership with some additional information about how you constructed these data structures, and how you tried to combine them, otherwise we (i.e. the people
 who’d want to think along with you to fix your problem) don’t know where to start.</font></div>
<div class=""><font size="4" class=""><br class="">
</font></div>
<div class=""><font size="4" class="">Jan-Mathijs</font></div>
<div class=""><font size="4" class=""><br class="">
</font>
<div><br class="">
<blockquote type="cite" class="">
<div class="">On 14 May 2020, at 09:32, Sarah Kirchler <<a href="mailto:sarah.kirchler@gmail.com" class="">sarah.kirchler@gmail.com</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div dir="ltr" class="">
<div class="">Dear Jan-Mathijs,</div>
<div class=""><br class="">
</div>
<div class="">thank you for your answer. I see, i expressed myself not very clear.
<br class="">
</div>
<div class="">I'd like to make the Grand mean for the difference and the sum between two specific frequencies I measured visually wih a SSVEP.
<br class="">
</div>
<div class="">I'd like to do this because I'm interested in how the frequencies are processed in the brain regarding each other and a control measurement.<br class="">
</div>
<div class="">I'm not sure if I can make the difference already when I make the GM or later, when I plot the topography.
<br class="">
</div>
<div class="">I tried to make this by building a datastructure that contains the GM of the one and the other frequency and then usw ft_math to compare them. But this doesn't work for me.
<br class="">
</div>
<div class="">Maybe thats enough information for you to understand the problem better, I'm a beginner so I often explain my problems a little bit confusing, sorry for that.
<br class="">
<br class="">
</div>
<div class="">Best, <br class="">
<br class="">
</div>
<div class="">Sarah<br class="">
</div>
</div>
<br class="">
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">Am Mi., 13. Mai 2020 um 15:30 Uhr schrieb Schoffelen, J.M. (Jan Mathijs) <<a href="mailto:jan.schoffelen@donders.ru.nl" class="">jan.schoffelen@donders.ru.nl</a>>:<br class="">
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div style="overflow-wrap: break-word;" class=""><font style="" size="4" class="">Dear Sarah,</font>
<div style="" class=""><font size="4" class=""><br class="">
</font></div>
<div style="" class=""><font size="4" class="">It is not clear what error message you get, nor why you think you should ft_timelockanalysis/ft_timelockgrandaverage/ft_topoplotER.</font></div>
<div style="" class=""><font size="4" class=""><br class="">
</font></div>
<div style="" class=""><font size="4" class="">Some pointers: </font></div>
<div style="" class=""><font size="4" class="">-For a mathematical operation to be applied to numeric data that resides within a fieldtrip-style data structure you’d use ft_math.</font></div>
<div style="" class=""><font size="4" class="">-What you want to do (i.e. adding or subtracting estimates of frequency specific power estimated for different frequency bins) probably requires some manual intervention with the data, because FT will likely prevent
 you to do so, since it checks whether the frequency bins for the to-be-combined data structures match. I could type some recipe now, but since you are not too clear on the details so I’d rather not spend time on that now. Also, I’d like to give other people
 the opportunity to chime in here :).</font></div>
<div style="" class=""><font size="4" class=""><br class="">
</font></div>
<div style="" class=""><font size="4" class="">Best wishes,</font></div>
<div style="" class=""><font size="4" class="">Jan-Mathijs</font></div>
<div class=""><br class="">
<blockquote type="cite" class="">
<div class="">On 11 May 2020, at 16:43, <a href="mailto:sarah.kirchler@gmail.com" target="_blank" class="">
sarah.kirchler@gmail.com</a> wrote:</div>
<br class="">
<div class="">
<div 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;text-decoration:none" class="">
<div style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif" class="">
Dear Fieldtrip Users,<span class=""> </span><br class="">
<br class="">
thank you for all the help you’ve given me already.<span class=""> </span><br class="">
Now I am trying to make the sum and the difference of the Grand mean from/between two frequencies I measured with an EEG.<span class=""> </span><br class="">
I read that it is possible to make a datastructure using {} within ft_timelockbaseline and then use the option cfg.operation(x1-x2 and so on) as a operation of function ft_topoplotER to make this sum/these differences.<span class=""> </span><br class="">
Now my Problem is that I don’t need to make the baselinecorrection via ft_timelockbaseline because I don’t have the baseline in the datasegment I’m interested in. So I tried to build the datastructure for cfg.operation within ft_timelockanalysis but Fieldtrip
 doesn’t allow this and I get an error message.<span class=""> </span><br class="">
<br class="">
</div>
<div style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif" class="">
My questions are now:<span class=""> </span><br class="">
1. Can I make the difference also within the ft_timelockgrandavverage function or do I have to make the difference lawer in ft_topoplotER?<span class=""> </span><br class="">
2. If so, how can I or form a datastructure I can use in cfg.operation or make the difference differently with some other function?<br class="">
<br class="">
</div>
<div style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif" class="">
I hope you understand me,<span class=""> </span><br class="">
to all you extraordinary brains: thank you in advance,<span class=""> </span><br class="">
<br class="">
Sarah</div>
<div style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif" class="">
<u class=""></u> <u class=""></u></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;text-decoration:none;float:none;display:inline" 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;text-decoration:none" 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;text-decoration:none;float:none;display:inline" 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;text-decoration:none" 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;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px" target="_blank" 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;text-decoration:none" 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;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px" target="_blank" class="">https://doi.org/10.1371/journal.pcbi.1002202</a></div>
</blockquote>
</div>
<br class="">
</div>
_______________________________________________<br class="">
fieldtrip mailing list<br class="">
<a href="https://mailman.science.ru.nl/mailman/listinfo/fieldtrip" rel="noreferrer" target="_blank" class="">https://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a><br class="">
<a href="https://doi.org/10.1371/journal.pcbi.1002202" rel="noreferrer" target="_blank" class="">https://doi.org/10.1371/journal.pcbi.1002202</a><br class="">
</blockquote>
</div>
_______________________________________________<br class="">
fieldtrip mailing list<br class="">
<a href="https://mailman.science.ru.nl/mailman/listinfo/fieldtrip" class="">https://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a><br class="">
https://doi.org/10.1371/journal.pcbi.1002202<br class="">
</div>
</blockquote>
</div>
<br class="">
</div>
</body>
</html>