<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Dear Pete,<div><br></div><div>something like this could help for single channels</div><div><br></div><div><div><div><div>[STUDY ersp times freqs] = std_erspplot(STUDY,ALLEEG, 'channels',{'OZ'});</div></div><div>erspDiff = ersp{2}-ersp{1};</div><div>erspDiff = mean(erspDiff, 4); % average across subjects</div><div>figure; tftopo(erspDiff, times, freqs);</div></div></div><div><br></div><div>For scalp topographies</div><div><br></div><div><div><div>chanlocs = eeg_mergelocs(ALLEEG.chanlocs);</div><div>[STUDY ersp times freqs] = std_erspplot(STUDY,ALLEEG, 'channels',{ chanlocs.labels }, 'topotime', [200 400], 'topofreq', [8 12]);</div></div><div>erspDiff = ersp{2}-ersp{1};</div><div>erspDiff = mean(erspDiff, 4);</div><div>figure; topoplot(erspDiff, chanlocs);</div></div><div><br></div><div>Best,</div><div><br></div><div>Arno</div><div><br><div><div>On 25 Feb 2013, at 18:39, 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><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:14.285714149475098px;background-color:rgb(255,255,255)">Dear Pete,</span></div><div><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:14.285714149475098px;background-color:rgb(255,255,255)"><br>
</span></div><div><font color="#222222" face="arial, sans-serif"><span style="font-size:14.285714149475098px">This is what I wrote 5 days ago for a similar question to the list. I hope this helps.</span></font></div><div>
<font color="#222222" face="arial, sans-serif"><span style="font-size:14.285714149475098px"><br></span></font></div><div><font color="#222222" face="arial, sans-serif"><span style="font-size:14.285714149475098px">%%%%%%%%%%%%%%%%%%%%</span></font></div>
<div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:14.285714149475098px;background-color:rgb(255,255,255)">If you don't mind doing a little hack here is description of how to do it. Here I show you the case of <span class="il" style="background-color:rgb(255,255,204)">ICA</span>-based clustering, not channel, but they should be more or less the same I guess (I hope).</div>
<div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:14.285714149475098px;background-color:rgb(255,255,255)"><br></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:14.285714149475098px;background-color:rgb(255,255,255)">
1. Plot 'Edit/plot clusters.'</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:14.285714149475098px;background-color:rgb(255,255,255)">2. Show all ERSPs.</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:14.285714149475098px;background-color:rgb(255,255,255)">
3. Close it by pressing 'ok'. This updates your STUDY.</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:14.285714149475098px;background-color:rgb(255,255,255)">4. You should be able to find STUDY.cluster(1,x).<span class="il" style="background-color:rgb(255,255,204)">icaersp</span>which is a cell that contains group x condition data (each of them have the size of frequency x timepoint).</div>
<div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:14.285714149475098px;background-color:rgb(255,255,255)">5. You select pick them up to calculate subtraction. You can also find frequency and time scales there.</div>
<div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:14.285714149475098px;background-color:rgb(255,255,255)">6. FYI to plot time-frequency plot use 'imagesc(); axis xy'.</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:14.285714149475098px;background-color:rgb(255,255,255)">
<br></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:14.285714149475098px;background-color:rgb(255,255,255)">Sorry I can't provide exactly matched information. If you find this method does not help much let me know.</div>
<div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:14.285714149475098px;background-color:rgb(255,255,255)">%%%%%%%%%%%%%%%%%</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:14.285714149475098px;background-color:rgb(255,255,255)">
<br></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:14.285714149475098px;background-color:rgb(255,255,255)">Maybe I should write a little plug-in for this. Sorry for this apparent inconvenience.</div>
<div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:14.285714149475098px;background-color:rgb(255,255,255)"><br></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:14.285714149475098px;background-color:rgb(255,255,255)">
Makoto </div><br><div class="gmail_quote">2013/2/25 Pete Manza <span dir="ltr"><<a href="mailto:pete.manza@gmail.com" target="_blank">pete.manza@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>Hello all,<br><br>I know there have been several posts on this but I haven't been able to make sense of how to proceed with my own code, as I'm not an experienced MATLAB user. <br><br></div>
I was wondering if anyone would be willing to share some code for plotting the ERSP subtraction of conditions (i.e., Condition A - Condition B): at the single channel level and if possible, for scalp maps of the difference also. (And, if it's necessary, code for precomputing the difference -- do you have to precompute the difference first in order to plot it? There was some disagreement in one of the older threads I had seen.) <br>
<br>I'm working within a STUDY design. I'm not using ICA-based clusters, just channels.<br><br></div>Thanks very much for the help!<span class="HOEnZb"><font color="#888888"><br>Pete Manza<br>Stony Brook University<br>
</font></span></div>
<br>_______________________________________________<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">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><br></blockquote></div><br><br clear="all"><div><br></div>
-- <br>Makoto Miyakoshi<br>JSPS Postdoctral Fellow for Research Abroad<br>Swartz Center for Computational Neuroscience<br>Institute for Neural Computation, University of California San Diego<br>
_______________________________________________<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>