<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Dear Nikola,<div><br></div><div>If you try for the first condition</div><div><br></div><div>figure; [ersp,itc,powbase] = pop_newtimef( ALLEEG(1), 1, 1, [ALLEEG(1).xmin ALLEEG(1).xmax]*1000, [3 0.5]);</div><div><br></div><div>then you can use the baseline in the other condition</div><div><br></div><div>figure; pop_newtimef( ALLEEG(2), 1, 1, [ALLEEG(2).xmin ALLEEG(2).xmax]*1000, [3 0.5], 'powbase', powbase);</div><div><br></div><div>there used to be issues with log scaling but it is not the case any more.</div><div>Best,</div><div><br></div><div>Arno</div><div><br><div><div>On 10 May 2013, at 08:51, Makoto Miyakoshi wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><div dir="ltr">Dear Nikola,<div><br></div><div style="">Probably XXX_erspbase. I don't think "powbase" takes raw values for computation, but most likely they just specify the time range(s) used for baseline.</div>

<div style=""><br></div><div style="">Well, however, it's actually more than pain in the neck to figure out the link between those files and the combination of subject and condition on STUDY.<br></div><div style=""><br></div>
<div style="">
If I were you I would do this.</div><div style="">1. go to edit/plot cluster and show all ERSPs and press ok to exit from edit/plot cluster; this updates your STUDY on the workspace.</div><div style="">2. Click STUDY-clusters- {1,n} to open nth cluster in the workspace.</div>

<div style="">3. There you should be seeing something like 'icaersp' which has the size of {x,y}; this corresponds to your STUDY design so carefully check which is which if you have two independent variables in your design.</div>

<div style="">4. Also you should be finding 'ersptime' 'freqs'.</div><div style="">5. With these you can identify cluster, combination of conditions, time scale, and freq scale. Thus you can compute your baseline period.</div>

<div style="">6. To visualilze your ERSP,</div><div style="">figure; imagesc(x); axis xy</div><div style="">You should be also able to feed your time and freq scales to the plot.</div><div style=""><br></div><div style="">Try this hack. I think this is the easiest way to do what you want to do.</div>

<div style=""><br></div><div style="">Makoto</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/5/9 Nikola Vukovic <span dir="ltr"><<a href="mailto:vukovicnikola@gmail.com" target="_blank">vukovicnikola@gmail.com</a>></span><br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div>Dear Makoto,<br><br></div>Thank you for your reply and advice. Let me see if I understand you correctly - I should load the reference condition's .icaersp files for all participants into Matlab, and then extract and average the compX_erspboot variables (<a href="http://d.pr/i/aWPm" target="_blank">http://d.pr/i/aWPm</a>)? This variable could then be used as the argument of "powbase" in subsequent ERSP calculations?<br>



<br></div>Nikola<br></div><div class="gmail_extra"><div><div class="h5"><br><br><div class="gmail_quote">On Fri, May 10, 2013 at 2:06 AM, Makoto Miyakoshi <span dir="ltr"><<a href="mailto:mmiyakoshi@ucsd.edu" target="_blank">mmiyakoshi@ucsd.edu</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">Dear Nikola,<div><br></div><div>This requires manual file operation outside EEGLAB.</div><div>When you precompute ersp, EEGLAB generates design1_xxxxxx.icaersp. You can open them by 'load disign1_xxxxxx.icaersp -mat' and can find baseline values. Sorry this is only minimum information for the solution.</div>





<div><br></div><div>Makoto   </div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/5/2 Nikola Vukovic <span dir="ltr"><<a href="mailto:vukovicnikola@gmail.com" target="_blank">vukovicnikola@gmail.com</a>></span><br>





<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><div dir="ltr"><div><div>Dear EEGlab community,<br><br></div>I am a beginner EEGlab user, and have a problem which was brought up a couple of times before on the list, but for which I wasn't able to find a clear solution.<br>







<br></div><div>I'm working with a STUDY design, which contains datasets decomposed using ICA, and their various components already clustered. I would like to find a way to calculate ERSPs for a cluster where the baseline for my experimental conditions of interest is taken from a separate condition (the "reference" condition).<br>







<br></div><div>So far, looking at the mailing list archives, I've been able to gather that one can use the powbase variable to specify a baseline derived from some other condition. However, all the posts I found also report issues with being unable to get the format of the powbase matrix right, or otherwise getting Matlab errors with their customized script.<br>







<br></div><div>I would be extremely grateful to anyone who can provide hints or scripts which would help me solve this issue. Saying that I'm inexperienced with eeglab coding would probably be the understatement of the year, but I am willing to follow any leads as to how to proceed. I presume there must be a way to calculate ERSP for a component cluster, selecting only my reference condition in the Study design, and then from this somehow extract the baseline values which could be used for calculating ERSP in other conditions?<br>







<br></div><div>Best wishes,<br></div><div>Nikola<br></div></div>
<br></div></div>_______________________________________________<br>
Eeglablist page: <a href="http://sccn.ucsd.edu/eeglab/eeglabmail.html" target="_blank">http://sccn.ucsd.edu/eeglab/eeglabmail.html</a><br>
To unsubscribe, send an empty email to <a href="mailto:eeglablist-unsubscribe@sccn.ucsd.edu" target="_blank">eeglablist-unsubscribe@sccn.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" target="_blank">eeglablist-request@sccn.ucsd.edu</a><span><font color="#888888"><br>

</font></span></blockquote></div><span><font color="#888888"><br><br clear="all"><div><br></div>

-- <br><div dir="ltr">Makoto Miyakoshi<br>Swartz Center for Computational Neuroscience<br>Institute for Neural Computation, University of California San Diego<br></div>
</font></span></div>
</blockquote></div><br><br clear="all"><br></div></div><span class="HOEnZb"><font color="#888888">-- <br>Nikola Vukovic<br><a href="mailto:vukovicnikola@gmail.com" target="_blank">vukovicnikola@gmail.com</a><br><a href="http://www.vukovicnikola.info/" target="_blank">www.vukovicnikola.info</a><br>



<a href="tel:%2B447412032927" value="+447412032927" target="_blank">+447412032927</a><br>
</font></span></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr">Makoto Miyakoshi<br>Swartz Center for Computational Neuroscience<br>Institute for Neural Computation, University of California San Diego<br></div>


</div>
_______________________________________________<br>Eeglablist page: <a href="http://sccn.ucsd.edu/eeglab/eeglabmail.html">http://sccn.ucsd.edu/eeglab/eeglabmail.html</a><br>To unsubscribe, send an empty email to <a href="mailto:eeglablist-unsubscribe@sccn.ucsd.edu">eeglablist-unsubscribe@sccn.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.edu</a></blockquote></div><br></div></body></html>