<div dir="ltr">Dear Katharina,<div><br></div><div>To be honest, the STUDY design is also a mystery to me, particularly kind kind of things. If what you reported is correct, it is certainly confusing, at least to me. I'm happy for you that you found it out anyways!</div><div><br></div><div>You can give comment on this to developers. Please copy and paste your message to EEGLAB bugzilla</div><div><a href="https://sccn.ucsd.edu/bugzilla/enter_bug.cgi">https://sccn.ucsd.edu/bugzilla/enter_bug.cgi</a><br></div><div>I appreciate your cooperation and patience.</div><div><br></div><div>Makoto</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Oct 24, 2016 at 5:40 AM, Katharina Limbach <span dir="ltr"><<a href="mailto:katharina.limbach@uni-jena.de" target="_blank">katharina.limbach@uni-jena.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_quote"><div dir="ltr">Dear EEGLABers,<div><br></div><div>I have a question concerning the data structure underlying the plots made with the GUI /Plot channel measures) and the output of the std_erspplot function.</div><div><br></div><div>In short it seems to me, that the graphical output I get with the GUI and the std_erspplot function is organized differently to the output cell created by the std_ersp function, which is very confusing to me!</div><div><br></div><div>Here is what I am doing:</div><div>I have a study with a 2 x 2 design (novelty (Hits vs Correct Rejections (CR)) and voice age (young vs. old) and 24 participants. I have 4 .set files per participant and created the STUDY by using the condition input for novelty (Hits and CR) and session for voice age (1 = young, 2 = old). I set it up that way, so that I could later on built my designs by selecting Condition as my first independent variable and Session as my second independent variable.<br></div><div><br></div><div>I then precompute the channel measures to get the ERSP. When I afterwards plot the results for one channel, I get a figure with 4 time-frequency graphs. </div><div>The graphs are titled like this:</div><div>"CP4, 1, CR"    "CP4,1,Hits"</div><div>"CP4, 2, CR"    "CP4,2,Hits"<br></div><div>So the first row seems to show both conditions for the first session (i.e. young voices) and the second row both conditions for the seond session (i.e. old voices).</div><div><br></div><div>I then wanted to extract the data to do some some stats in a different program.</div><div>I used the following code:</div><div><div>[STUDY erspdata ersptimes erspfreqs] = std_erspplot(STUDY, ALLEEG, ...</div><div>    'channels', {STUDY.changrp(55).name}); % 55 = channel CP4</div></div><div><br></div><div>(The graphs look the same as when created from the GUI.) The erspdata output is a 2 x 2 cell array, and each element holds a 4-D matrix (22 (frequencies) 250 (timepoints)     1 (channel)   24 (participants)). So far so good.</div><div>However, I then assumed that this cell would be organized like the graphical output of the std_erspplot and the gui function.</div><div>So that </div><div>(1,1) 1,CR, (1,2) 1,Hits </div><div>(2,1) 2,CR  (2,2) 2,Hits. </div><div>However, that does not seem to be the case! It seems that the rows and columns are switched and that the cell array is actually organized like this:</div><div><div>(1,1) 1,CR, (1,2) 2,CR </div><div>(2,1) 1,Hits (2,2) 2,Hits. </div></div><div><br></div><div>One way I tested this was to average the erspdata across participants (per cell) and then plot it using the Matlab imagesc function. The erspdata output seems to be organized such that the rows represent the Condition and the columns the Session (opposite to what it shown in the graphs).</div><div><br></div><div>Why is this happening? Is this a bug, or where I am doing something wrong?</div><div><br></div><div>I really appreciate your help,</div><div>Katharina</div><div><br></div><div> </div></div>
</div><br></div>
<br>______________________________<wbr>_________________<br>
Eeglablist page: <a href="http://sccn.ucsd.edu/eeglab/eeglabmail.html" rel="noreferrer" target="_blank">http://sccn.ucsd.edu/eeglab/<wbr>eeglabmail.html</a><br>
To unsubscribe, send an empty email to <a href="mailto:eeglablist-unsubscribe@sccn.ucsd.edu">eeglablist-unsubscribe@sccn.<wbr>ucsd.edu</a><br>
For digest mode, send an email with the subject "set digest mime" to <a href="mailto:eeglablist-request@sccn.ucsd.edu">eeglablist-request@sccn.ucsd.<wbr>edu</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Makoto Miyakoshi<br>Swartz Center for Computational Neuroscience<br>Institute for Neural Computation, University of California San Diego<br></div></div>
</div>